[FFmpeg-cvslog] r20126 - trunk/libavformat/raw.c

reimar subversion
Thu Oct 1 18:10:09 CEST 2009


Author: reimar
Date: Thu Oct  1 18:10:09 2009
New Revision: 20126

Log:
av_new_packet failing should return ENOMEM, not EIO.

Modified:
   trunk/libavformat/raw.c

Modified: trunk/libavformat/raw.c
==============================================================================
--- trunk/libavformat/raw.c	Thu Oct  1 17:54:55 2009	(r20125)
+++ trunk/libavformat/raw.c	Thu Oct  1 18:10:09 2009	(r20126)
@@ -142,7 +142,7 @@ int ff_raw_read_partial_packet(AVFormatC
     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(AVForma
         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;



More information about the ffmpeg-cvslog mailing list