[FFmpeg-cvslog] avcodec/av1_parser: skip frames with spatial_id > 0

James Almer git at videolan.org
Mon Jan 6 17:16:45 EET 2020


ffmpeg | branch: release/4.1 | James Almer <jamrial at gmail.com> | Mon Dec  2 14:38:52 2019 -0300| [3413eb6091d44386dea9e31fa56e34120766ec53] | committer: James Almer

avcodec/av1_parser: skip frames with spatial_id > 0

This fixes marking keyframes in svc samples.

Signed-off-by: James Almer <jamrial at gmail.com>
(cherry picked from commit 5985ca0436f26483f37259357bf34bbf743252ed)

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3413eb6091d44386dea9e31fa56e34120766ec53
---

 libavcodec/av1_parser.c | 3 +++
 1 file changed, 3 insertions(+)

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];
 



More information about the ffmpeg-cvslog mailing list