tak_parser: properly mark packets as key frames
authorPaul B Mahol <onemda@gmail.com>
Fri, 28 Jun 2013 21:21:57 +0000 (21:21 +0000)
committerPaul B Mahol <onemda@gmail.com>
Fri, 28 Jun 2013 21:31:14 +0000 (21:31 +0000)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavcodec/tak_parser.c

index 0f2fbc2b35b2046c5fbb47cf90631b8b6f621c18..9136192579ad1698479e6cbd3b9236f5d7a53134 100644 (file)
@@ -90,6 +90,7 @@ static int tak_parse(AVCodecParserContext *s, AVCodecContext *avctx,
                         s->duration           = t->ti.last_frame_samples ?
                                                 t->ti.last_frame_samples :
                                                 t->ti.frame_samples;
+                        s->key_frame          = !!(t->ti.flags & TAK_FRAME_FLAG_HAS_INFO);
                     } else {
                         pc->frame_start_found = 0;
                         next                  = t->index - pc->index;