summaryrefslogtreecommitdiff
path: root/libavcodec/tak_parser.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-06-28 21:21:57 +0000
committerPaul B Mahol <onemda@gmail.com>2013-06-28 21:31:14 +0000
commit36748d4b6ca9c963a24c49b2196847984f02f3ac (patch)
treecb6e1502d99efacde3550e0c6252606b7e76c539 /libavcodec/tak_parser.c
parent2bccd82c29debe7687684d0905f3603c9eab7917 (diff)
tak_parser: properly mark packets as key frames
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/tak_parser.c')
-rw-r--r--libavcodec/tak_parser.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/tak_parser.c b/libavcodec/tak_parser.c
index 0f2fbc2b35..9136192579 100644
--- a/libavcodec/tak_parser.c
+++ b/libavcodec/tak_parser.c
@@ -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;