diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-02-03 22:15:32 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-02-03 22:15:32 +0100 |
commit | 1a96b27ebfa908f60510be0537508b7c9b370be0 (patch) | |
tree | 192121d9456067a6f94a96fbf46eda7aee8ef89c | |
parent | 3e309c5d185bc0288e4c8cadf97c91c04806b875 (diff) | |
download | ffmpeg-1a96b27ebfa908f60510be0537508b7c9b370be0.tar.gz |
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@gmx.at>
-rw-r--r-- | libavcodec/h264.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 3849d9b884..83f4c5895e 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) { |