]> git.sesse.net Git - ffmpeg/commit
mov: Allow more than one keyframe per trun
authorMartin Storsjö <martin@martin.st>
Wed, 2 Sep 2015 10:05:45 +0000 (13:05 +0300)
committerMartin Storsjö <martin@martin.st>
Sun, 6 Sep 2015 18:24:37 +0000 (21:24 +0300)
commit7cad1bf0759ada2a1fc3e80bb232a5377dd4fda4
tree80659913815f5c6cb355f52cc2564fe1171b0765
parentd0f7e4a57fbffa0efb204d4274c3dd56fbfff946
mov: Allow more than one keyframe per trun

The previous restriction was partially designed to fix certain
(broken) samples from bug 215. There should be no restriction on the
number of keyframes per fragment or trun.

The spec suggests that all frames lacking MOV_FRAG_SAMPLE_FLAG_IS_NON_SYNC
are key frames, but we require the flag MOV_FRAG_SAMPLE_FLAG_DEPENDS_YES
to be unset as well. This works for (possibly broken) media that never
sets the NON_SYNC flag and should also be correct for any spec-compliant
file.

For files that never set either of the flags, all samples are marked
as keyframes.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/mov.c