avcodec/av1_parser: skip frames with spatial_id > 0
authorJames Almer <jamrial@gmail.com>
Mon, 2 Dec 2019 17:38:52 +0000 (14:38 -0300)
committerJames Almer <jamrial@gmail.com>
Mon, 2 Dec 2019 17:38:52 +0000 (14:38 -0300)
This fixes marking keyframes in svc samples.

Signed-off-by: James Almer <jamrial@gmail.com>
libavcodec/av1_parser.c

index 08721c3..131a05f 100644 (file)
@@ -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];