diff options
author | Paul B Mahol <onemda@gmail.com> | 2022-03-05 11:10:24 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2022-03-05 22:11:38 +0100 |
commit | 044c09c0a0b5e2d91d75619c1327e232a4914030 (patch) | |
tree | 33bc3404adaa44adcf4661205baed9696de929f4 /libavcodec/dnxhdenc.h | |
parent | 37480b1b85b0405563962b581dc2899b1b4bec59 (diff) | |
download | ffmpeg-044c09c0a0b5e2d91d75619c1327e232a4914030.tar.gz |
avcodec/dnxhdenc: retry increasing qscale to not overflow max_bits
Increase mb_bits type from uint16_t to uint32_t to fix possible overflows
in bit size calculations.
Update fate test that needs change.
Diffstat (limited to 'libavcodec/dnxhdenc.h')
-rw-r--r-- | libavcodec/dnxhdenc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dnxhdenc.h b/libavcodec/dnxhdenc.h index 30ae8c15e3..7726a3915f 100644 --- a/libavcodec/dnxhdenc.h +++ b/libavcodec/dnxhdenc.h @@ -100,7 +100,7 @@ typedef struct DNXHDEncContext { unsigned qscale; unsigned lambda; - uint16_t *mb_bits; + uint32_t *mb_bits; uint8_t *mb_qscale; RCCMPEntry *mb_cmp; |