[FFmpeg-cvslog] avcodec/cbs_av1_syntax_template: Set seen_frame_header only after successfull uncompressed_header()

Michael Niedermayer git at videolan.org
Fri Mar 6 01:59:56 EET 2020


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Sat Dec 14 18:43:24 2019 +0100| [a2e4879432b9de6aa899b85aebbc0eb6a8b5f37f] | committer: Michael Niedermayer

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 at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a2e4879432b9de6aa899b85aebbc0eb6a8b5f37f
---

 libavcodec/cbs_av1_syntax_template.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/libavcodec/cbs_av1_syntax_template.c b/libavcodec/cbs_av1_syntax_template.c
index 0855f7306f..a315e8868a 100644
--- a/libavcodec/cbs_av1_syntax_template.c
+++ b/libavcodec/cbs_av1_syntax_template.c
@@ -1609,8 +1609,6 @@ static int FUNC(frame_header_obu)(CodedBitstreamContext *ctx, RWContext *rw,
         else
             HEADER("Frame Header");
 
-        priv->seen_frame_header = 1;
-
 #ifdef READ
         start_pos = get_bits_count(rw);
 #else



More information about the ffmpeg-cvslog mailing list