aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2019-12-02 14:38:52 -0300
committerJames Almer <jamrial@gmail.com>2020-01-06 12:10:44 -0300
commit3413eb6091d44386dea9e31fa56e34120766ec53 (patch)
tree7b45e168cf75de89b1f732c47613ed5cb6fb2326
parent07afe2e3ca2e33a52acd142ba0595e495589de96 (diff)
downloadffmpeg-3413eb6091d44386dea9e31fa56e34120766ec53.tar.gz
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)
-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 0390de0b36..18c6b94caf 100644
--- a/libavcodec/av1_parser.c
+++ b/libavcodec/av1_parser.c
@@ -100,6 +100,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];