aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2020-05-28 14:33:58 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2020-07-05 01:47:56 +0200
commitaab78e0c00c8cfca0468276ef00053f36c0ff5d0 (patch)
tree49dcc869a69f7449859fa84a0725d8a9ba4e8942
parent6555a7138836519ca4f5c577960b0d5acf5faa38 (diff)
downloadffmpeg-aab78e0c00c8cfca0468276ef00053f36c0ff5d0.tar.gz
avcodec/h264dec: Disable forced small_padding on flag2 fast
Fixes: 20978/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_H264_fuzzer-5746381832847360 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavcodec/h264dec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264dec.c b/libavcodec/h264dec.c
index 8d1bd16a8e..daf113060a 100644
--- a/libavcodec/h264dec.c
+++ b/libavcodec/h264dec.c
@@ -623,7 +623,7 @@ static int decode_nal_units(H264Context *h, const uint8_t *buf, int buf_size)
}
ret = ff_h2645_packet_split(&h->pkt, buf, buf_size, avctx, h->is_avc, h->nal_length_size,
- avctx->codec_id, avctx->flags2 & AV_CODEC_FLAG2_FAST, 0);
+ avctx->codec_id, 0, 0);
if (ret < 0) {
av_log(avctx, AV_LOG_ERROR,
"Error splitting the input into NAL units.\n");