From 632eb1bbae473f7105e0ec6556cb040ea6d30910 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reimar=20D=C3=B6ffinger?= Date: Sun, 26 Feb 2012 22:47:41 +0000 Subject: [PATCH] cdxl demux: do not create packets with uninitialized data at EOF. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Reimar Döffinger Signed-off-by: Paul B Mahol Signed-off-by: Justin Ruggles --- libavformat/cdxl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/cdxl.c b/libavformat/cdxl.c index b056d691c9..ed795e4cc5 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;