1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avcodec/cbs_av1_syntax_template: Set seen_frame_header only after successfull uncompressed_header()

Fixes: assertion failure
Fixes: 19301/clusterfuzz-testcase-minimized-ffmpeg_BSF_AV1_FRAME_MERGE_fuzzer-5743212006473728

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:
Michael Niedermayer 2019-12-14 18:43:24 +01:00
parent e27a35e045
commit a2e4879432

View File

@ -1609,8 +1609,6 @@ static int FUNC(frame_header_obu)(CodedBitstreamContext *ctx, RWContext *rw,
else else
HEADER("Frame Header"); HEADER("Frame Header");
priv->seen_frame_header = 1;
#ifdef READ #ifdef READ
start_pos = get_bits_count(rw); start_pos = get_bits_count(rw);
#else #else