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@gmail.com>
(cherry picked from commit afbe9ebac7)
This commit is contained in:
parent
408592c838
commit
af72c16468
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue