[FFmpeg-cvslog] avcodec/h264: clear dequant8_coeff pointers if 8x8 mode is not enabled
Michael Niedermayer
git at videolan.org
Tue Feb 4 00:08:26 CET 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Feb 3 22:15:32 2014 +0100| [1a96b27ebfa908f60510be0537508b7c9b370be0] | committer: Michael Niedermayer
avcodec/h264: clear dequant8_coeff pointers if 8x8 mode is not enabled
This prevents stale pointers from being left
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1a96b27ebfa908f60510be0537508b7c9b370be0
---
libavcodec/h264.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 3849d9b..83f4c58 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -1314,6 +1314,8 @@ static void init_dequant_tables(H264Context *h)
{
int i, x;
init_dequant4_coeff_table(h);
+ memset(h->dequant8_coeff, 0, sizeof(h->dequant8_coeff));
+
if (h->pps.transform_8x8_mode)
init_dequant8_coeff_table(h);
if (h->sps.transform_bypass) {
More information about the ffmpeg-cvslog
mailing list