aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2012-02-26 22:47:41 +0000
committerJustin Ruggles <justin.ruggles@gmail.com>2012-03-05 16:27:31 -0500
commit632eb1bbae473f7105e0ec6556cb040ea6d30910 (patch)
tree5b52a25b20b0be4d2bbb126f4052b18d8a2ed62a
parent3574a85ce57366ba7429edef93d5cad8640fb68c (diff)
downloadffmpeg-632eb1bbae473f7105e0ec6556cb040ea6d30910.tar.gz
cdxl demux: do not create packets with uninitialized data at EOF.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de> Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
-rw-r--r--libavformat/cdxl.c1
1 files changed, 1 insertions, 0 deletions
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;