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

reimar subversion
Thu Oct 1 19:32:22 CEST 2009


Author: reimar
Date: Thu Oct  1 19:32:22 2009
New Revision: 20130

Log:
Make rawvideo_read_packet return partial frames.
This is consistent with other demuxers and also fixes a memleak (memory
allocated for partial frame data was leaked).

Modified:
   trunk/libavformat/raw.c

Modified: trunk/libavformat/raw.c
==============================================================================
--- trunk/libavformat/raw.c	Thu Oct  1 19:26:20 2009	(r20129)
+++ trunk/libavformat/raw.c	Thu Oct  1 19:32:22 2009	(r20130)
@@ -171,7 +171,7 @@ static int rawvideo_read_packet(AVFormat
     pkt->dts= pkt->pos / packet_size;
 
     pkt->stream_index = 0;
-    if (ret != packet_size)
+    if (ret <= 0)
         return AVERROR(EIO);
     return 0;
 }



More information about the ffmpeg-cvslog mailing list