diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2012-02-26 17:08:38 +0100 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2012-02-26 19:39:59 +0100 |
commit | d7804de351da059bf0c41c2bc2bbc02dbb755c0f (patch) | |
tree | 7cd17870e2b074064787737b86a334e2e72b46a1 /libavformat/cdxl.c | |
parent | 305e4b35ea7b643ab3ce8a37fa8cb464e8adeb3f (diff) | |
download | ffmpeg-d7804de351da059bf0c41c2bc2bbc02dbb755c0f.tar.gz |
cdxl demux: do not create packets with uninitialized data at EOF.
Fixes a failure in cdxl-pal8 test for the valgrind FATE instance.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Diffstat (limited to 'libavformat/cdxl.c')
-rw-r--r-- | libavformat/cdxl.c | 1 |
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; |