mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-28 12:32:17 +02:00
avformat/mov: don't unconditionally set all audio packets in fragments as key frames
Some audio codecs, like TrueHD, have non key frames. Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
f656c00bd9
commit
8ddbc26ded
@ -6003,10 +6003,7 @@ static int mov_read_trun(MOVContext *c, AVIOContext *pb, MOVAtom atom)
|
|||||||
pts = AV_NOPTS_VALUE;
|
pts = AV_NOPTS_VALUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (st->codecpar->codec_type == AVMEDIA_TYPE_AUDIO)
|
keyframe =
|
||||||
keyframe = 1;
|
|
||||||
else
|
|
||||||
keyframe =
|
|
||||||
!(sample_flags & (MOV_FRAG_SAMPLE_FLAG_IS_NON_SYNC |
|
!(sample_flags & (MOV_FRAG_SAMPLE_FLAG_IS_NON_SYNC |
|
||||||
MOV_FRAG_SAMPLE_FLAG_DEPENDS_YES));
|
MOV_FRAG_SAMPLE_FLAG_DEPENDS_YES));
|
||||||
if (keyframe) {
|
if (keyframe) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user