From efd6b80b402a54923f007378a7dc5397676a8f3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reimar=20D=C3=B6ffinger?= Date: Sun, 8 Jan 2012 16:56:46 +0100 Subject: rawdec: use av_shrink_packet. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes reads of uninitialized data by the parser when running FATE sample h264-conformance/SL1_SVA_B.264. Signed-off-by: Reimar Döffinger --- libavformat/rawdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/rawdec.c') diff --git a/libavformat/rawdec.c b/libavformat/rawdec.c index 7d77df1..ad1921d 100644 --- a/libavformat/rawdec.c +++ b/libavformat/rawdec.c @@ -122,7 +122,7 @@ int ff_raw_read_partial_packet(AVFormatContext *s, AVPacket *pkt) av_free_packet(pkt); return ret; } - pkt->size = ret; + av_shrink_packet(pkt, ret); return ret; } -- cgit v1.1