[FFmpeg-cvslog] avcodec/cbs_av1: infer frame_type in show_existing_frame frames earlier

James Almer git at videolan.org
Sun Sep 6 04:38:10 EEST 2020


ffmpeg | branch: release/4.3 | James Almer <jamrial at gmail.com> | Mon Aug 24 12:21:51 2020 -0300| [af72c164683552ef5b9b89b07e6a57fb5fa19403] | committer: James Almer

avcodec/cbs_av1: infer frame_type in show_existing_frame frames earlier

This follows the spec and will come in handy in the next commit.

Signed-off-by: James Almer <jamrial at gmail.com>
(cherry picked from commit afbe9ebac7b47fec84703459bfe64fc90c2ad937)

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

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

diff --git a/libavcodec/cbs_av1_syntax_template.c b/libavcodec/cbs_av1_syntax_template.c
index 6617721e6c..61e3d11f64 100644
--- a/libavcodec/cbs_av1_syntax_template.c
+++ b/libavcodec/cbs_av1_syntax_template.c
@@ -1275,12 +1275,12 @@ static int FUNC(uncompressed_header)(CodedBitstreamContext *ctx, RWContext *rw,
             if (seq->frame_id_numbers_present_flag)
                 fb(id_len, display_frame_id);
 
-            if (frame->frame_type == AV1_FRAME_KEY)
+            infer(frame_type, frame->frame_type);
+            if (current->frame_type == AV1_FRAME_KEY)
                 infer(refresh_frame_flags, all_frames);
             else
                 infer(refresh_frame_flags, 0);
 
-            infer(frame_type,            frame->frame_type);
             return 0;
         }
 



More information about the ffmpeg-cvslog mailing list