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