Commit 36748d4b authored by Paul B Mahol's avatar Paul B Mahol

tak_parser: properly mark packets as key frames

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 2bccd82c
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment