summaryrefslogtreecommitdiff
path: root/libavcodec/dnxhdenc.h
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2022-03-05 11:10:24 +0100
committerPaul B Mahol <onemda@gmail.com>2022-03-05 22:11:38 +0100
commit044c09c0a0b5e2d91d75619c1327e232a4914030 (patch)
tree33bc3404adaa44adcf4661205baed9696de929f4 /libavcodec/dnxhdenc.h
parent37480b1b85b0405563962b581dc2899b1b4bec59 (diff)
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.h2
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;