From c67031e7cfb21d6b1024d776a5d343ad22eb7c73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reimar=20D=C3=B6ffinger?= Date: Thu, 1 Oct 2009 16:10:09 +0000 Subject: [PATCH] av_new_packet failing should return ENOMEM, not EIO. Originally committed as revision 20126 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/raw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavformat/raw.c b/libavformat/raw.c index e7cfd7c1d0..dc93083e5b 100644 --- a/libavformat/raw.c +++ b/libavformat/raw.c @@ -142,7 +142,7 @@ int ff_raw_read_partial_packet(AVFormatContext *s, AVPacket *pkt) size = RAW_PACKET_SIZE; if (av_new_packet(pkt, size) < 0) - return AVERROR(EIO); + return AVERROR(ENOMEM); pkt->pos= url_ftell(s->pb); pkt->stream_index = 0; @@ -206,7 +206,7 @@ static int ingenient_read_packet(AVFormatContext *s, AVPacket *pkt) size, w, h, unk1, unk2); if (av_new_packet(pkt, size) < 0) - return AVERROR(EIO); + return AVERROR(ENOMEM); pkt->pos = url_ftell(s->pb); pkt->stream_index = 0;