mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-25 12:40:01 +00:00
tak_parser: properly mark packets as key frames
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
2bccd82c29
commit
36748d4b6c
@ -90,6 +90,7 @@ static int tak_parse(AVCodecParserContext *s, AVCodecContext *avctx,
|
|||||||
s->duration = t->ti.last_frame_samples ?
|
s->duration = t->ti.last_frame_samples ?
|
||||||
t->ti.last_frame_samples :
|
t->ti.last_frame_samples :
|
||||||
t->ti.frame_samples;
|
t->ti.frame_samples;
|
||||||
|
s->key_frame = !!(t->ti.flags & TAK_FRAME_FLAG_HAS_INFO);
|
||||||
} else {
|
} else {
|
||||||
pc->frame_start_found = 0;
|
pc->frame_start_found = 0;
|
||||||
next = t->index - pc->index;
|
next = t->index - pc->index;
|
||||||
|
Loading…
Reference in New Issue
Block a user