History

avformat/mov: don't unconditionally set all audio packets in fragments as key frames

Some audio codecs, like TrueHD, have non key frames.

James Almer committed 1 year ago

Commit 8ddbc261 parent f656c001 file · +1 −4Browse files

Unified · Split

libavformat/mov.c+1−4
@@ -6003,10 +6003,7 @@ static int mov_read_trun(MOVContext *c, AVIOContext *pb, MOVAtom atom) · 6002 unmodified lines
60036003 pts = AV_NOPTS_VALUE;
60046004 }
60056005
6006− if (st->codecpar->codec_type == AVMEDIA_TYPE_AUDIO)
6007− keyframe = 1;
6008− else
6009− keyframe =
6006+ keyframe =
60106007 !(sample_flags & (MOV_FRAG_SAMPLE_FLAG_IS_NON_SYNC |
60116008 MOV_FRAG_SAMPLE_FLAG_DEPENDS_YES));
60126009 if (keyframe) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t