[SCM] libav/experimental: 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).

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


The following commit has been merged in the experimental branch:
commit 22a7e19b50cc1627dd16e22c5e89b1f92f1d0c0e
Author: Reimar Döffinger <Reimar.Doeffinger at gmx.de>
Date:   Thu Oct 1 17:32:22 2009 +0000

    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).
    
    Originally committed as revision 20130 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavformat/raw.c b/libavformat/raw.c
index 4b0a31c..260b690 100644
--- a/libavformat/raw.c
+++ b/libavformat/raw.c
@@ -171,7 +171,7 @@ static int rawvideo_read_packet(AVFormatContext *s, AVPacket *pkt)
     pkt->dts= pkt->pos / packet_size;
 
     pkt->stream_index = 0;
-    if (ret != packet_size)
+    if (ret <= 0)
         return AVERROR(EIO);
     return 0;
 }

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list