mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-29 22:00:58 +02:00
avcodec/av1_parser: skip frames with spatial_id > 0
This fixes marking keyframes in svc samples. Signed-off-by: James Almer <jamrial@gmail.com> (cherry picked from commit 5985ca0436f26483f37259357bf34bbf743252ed)
This commit is contained in:
parent
07afe2e3ca
commit
3413eb6091
@ -100,6 +100,9 @@ static int av1_parser_parse(AVCodecParserContext *ctx,
|
|||||||
else
|
else
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
if (obu->header.spatial_id > 0)
|
||||||
|
continue;
|
||||||
|
|
||||||
if (frame->show_existing_frame) {
|
if (frame->show_existing_frame) {
|
||||||
AV1ReferenceFrameState *ref = &av1->ref[frame->frame_to_show_map_idx];
|
AV1ReferenceFrameState *ref = &av1->ref[frame->frame_to_show_map_idx];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user