[FFmpeg-cvslog] rawdec: use av_shrink_packet.
Reimar Döffinger
git at videolan.org
Mon Jan 9 11:03:59 CET 2012
ffmpeg | branch: master | Reimar Döffinger <Reimar.Doeffinger at gmx.de> | Sun Jan 8 16:56:46 2012 +0100| [efd6b80b402a54923f007378a7dc5397676a8f3a] | committer: Reimar Döffinger
rawdec: use av_shrink_packet.
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 <Reimar.Doeffinger at gmx.de>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=efd6b80b402a54923f007378a7dc5397676a8f3a
---
libavformat/rawdec.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
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;
}
More information about the ffmpeg-cvslog
mailing list