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
6003 pts = AV_NOPTS_VALUE;6003 pts = AV_NOPTS_VALUE;
6004 }6004 }
6005 6005
6006 if (st->codecpar->codec_type == AVMEDIA_TYPE_AUDIO)6006 keyframe =
6007 keyframe = 1;
6008 else
6009 keyframe =
6010 !(sample_flags & (MOV_FRAG_SAMPLE_FLAG_IS_NON_SYNC |6007 !(sample_flags & (MOV_FRAG_SAMPLE_FLAG_IS_NON_SYNC |
6011 MOV_FRAG_SAMPLE_FLAG_DEPENDS_YES));6008 MOV_FRAG_SAMPLE_FLAG_DEPENDS_YES));
6012 if (keyframe) {6009 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