Some audio codecs, like TrueHD, have non key frames.
Unified · Split
| @@ -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) { |