aboutsummaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorJames Almer2019-12-02 14:38:52 -0300
committerJames Almer2019-12-02 14:38:52 -0300
commit5985ca0436f26483f37259357bf34bbf743252ed (patch)
treec8aa887664a168d9498d88fd919a39869306b0e6 /libavcodec
parentf9d43669125745ff678ec2b3cf731868fceb72b1 (diff)
avcodec/av1_parser: skip frames with spatial_id > 0
This fixes marking keyframes in svc samples. Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/av1_parser.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/av1_parser.c b/libavcodec/av1_parser.c
index 08721c356a..131a05fd72 100644
--- a/libavcodec/av1_parser.c
+++ b/libavcodec/av1_parser.c
@@ -101,6 +101,9 @@ static int av1_parser_parse(AVCodecParserContext *ctx,
else
continue;
+ if (obu->header.spatial_id > 0)
+ continue;
+
if (frame->show_existing_frame) {
AV1ReferenceFrameState *ref = &av1->ref[frame->frame_to_show_map_idx];