Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2021-08-14 17:45:02 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2021-09-19 23:36:23 +0300
commit0faf04e807fc09bb3d72a034c284fe44b54fa76b (patch)
treecc40e310d623b3640a63177b97c582e2962e0eb3 /libavcodec/snow.h
parentdb18f29b33a060b3ce0fc7ac7d215aeb3506c0ae (diff)
avcodec/snowdec: Maintain avmv buffer
This avoids reallocating per frame Fixes: Assertion failure Fixes: 36359/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SNOW_fuzzer-6733238591684608 Fixes: 38623/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SNOW_fuzzer-6098656512573440 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/snow.h')
-rw-r--r--libavcodec/snow.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/snow.h b/libavcodec/snow.h
index c0d2599859..8795491cf3 100644
--- a/libavcodec/snow.h
+++ b/libavcodec/snow.h
@@ -186,6 +186,7 @@ typedef struct SnowContext{
uint8_t *emu_edge_buffer;
AVMotionVector *avmv;
+ unsigned avmv_size;
int avmv_index;
uint64_t encoding_error[AV_NUM_DATA_POINTERS];