diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2009-10-01 16:10:09 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2009-10-01 16:10:09 +0000 |
commit | c67031e7cfb21d6b1024d776a5d343ad22eb7c73 (patch) | |
tree | a655f12b50bf5e9edcff0630f325b382a0a7efad /libavformat | |
parent | 681c180dc441bf9fea1bb363c75c5d443f11a53a (diff) | |
download | ffmpeg-c67031e7cfb21d6b1024d776a5d343ad22eb7c73.tar.gz |
av_new_packet failing should return ENOMEM, not EIO.
Originally committed as revision 20126 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/raw.c | 4 |
1 files 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; |