[SCM] libav/experimental: av_new_packet failing should return ENOMEM, not EIO.

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:52:21 UTC 2013


The following commit has been merged in the experimental branch:
commit c67031e7cfb21d6b1024d776a5d343ad22eb7c73
Author: Reimar Döffinger <Reimar.Doeffinger at gmx.de>
Date:   Thu Oct 1 16:10:09 2009 +0000

    av_new_packet failing should return ENOMEM, not EIO.
    
    Originally committed as revision 20126 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavformat/raw.c b/libavformat/raw.c
index e7cfd7c..dc93083 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;

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list