[FFmpeg-cvslog] cdxl demux: do not create packets with uninitialized data at EOF.

Reimar Döffinger git at videolan.org
Tue Mar 6 06:16:04 CET 2012


ffmpeg | branch: master | Reimar Döffinger <Reimar.Doeffinger at gmx.de> | Sun Feb 26 22:47:41 2012 +0000| [632eb1bbae473f7105e0ec6556cb040ea6d30910] | committer: Justin Ruggles

cdxl demux: do not create packets with uninitialized data at EOF.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger at gmx.de>
Signed-off-by: Paul B Mahol <onemda at gmail.com>
Signed-off-by: Justin Ruggles <justin.ruggles at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=632eb1bbae473f7105e0ec6556cb040ea6d30910
---

 libavformat/cdxl.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libavformat/cdxl.c b/libavformat/cdxl.c
index b056d69..ed795e4 100644
--- a/libavformat/cdxl.c
+++ b/libavformat/cdxl.c
@@ -142,6 +142,7 @@ static int cdxl_read_packet(AVFormatContext *s, AVPacket *pkt)
             av_free_packet(pkt);
             return ret;
         }
+        av_shrink_packet(pkt, CDXL_HEADER_SIZE + ret);
         pkt->stream_index  = cdxl->video_stream_index;
         pkt->flags        |= AV_PKT_FLAG_KEY;
         pkt->pos           = pos;



More information about the ffmpeg-cvslog mailing list