mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-23 19:30:05 +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 ?
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user