mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-09-05 23:58:59 +02:00
avcodec/h274: fix bad left shifts
Fixes: left shift of negative value -3 Fixes: 37788/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_H264_fuzzer-6024714540154880 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
5f835efbca
commit
991b3deea9
@ -250,8 +250,8 @@ int ff_h274_apply_film_grain(AVFrame *out_frame, const AVFrame *in_frame,
|
||||
// Adaptation for 4:2:0 chroma subsampling
|
||||
for (int i = 0; i < h274.num_intensity_intervals[c]; i++) {
|
||||
h274.comp_model_value[c][i][0] >>= 1;
|
||||
h274.comp_model_value[c][i][1] <<= 1;
|
||||
h274.comp_model_value[c][i][2] <<= 1;
|
||||
h274.comp_model_value[c][i][1] *= 2;
|
||||
h274.comp_model_value[c][i][2] *= 2;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user