summaryrefslogtreecommitdiff
path: root/libavcodec/dnxhdenc.h
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2022-03-04 23:25:48 +0100
committerPaul B Mahol <onemda@gmail.com>2022-03-04 23:44:01 +0100
commit37480b1b85b0405563962b581dc2899b1b4bec59 (patch)
tree7239e10687679edba04c5863c00dd0365768b19a /libavcodec/dnxhdenc.h
parentf497731260d42e920318ca745a8146febb9e055e (diff)
avcodec/dnxhdenc: fix possible out of bound writes for big w/h
It was caused by integer overflows.
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 9e4c869bc4..30ae8c15e3 100644
--- a/libavcodec/dnxhdenc.h
+++ b/libavcodec/dnxhdenc.h
@@ -34,7 +34,7 @@
#include "dnxhddata.h"
typedef struct RCCMPEntry {
- uint16_t mb;
+ uint32_t mb;
int value;
} RCCMPEntry;