movdec: Adjust keyframe flagging in fragmented files
authorMartin Storsjö <martin@martin.st>
Tue, 31 Jan 2012 10:45:02 +0000 (12:45 +0200)
committerMartin Storsjö <martin@martin.st>
Tue, 21 Feb 2012 12:19:20 +0000 (14:19 +0200)
commita5c50913a82f499ea821acab5263dfcf023d654f
tree98384a32df79dbb7df61dbcb08f9f1f79ae0463c
parent3ab9a2a5577d445252724af4067d2a7c8a378efa
movdec: Adjust keyframe flagging in fragmented files

For video, mark the first sample in a trun which doesn't have the
sample-is-non-sync-sample flag set as a keyframe.

In particular, the "sample does not depend on other samples" flag
isn't enough to make it a keyframe, since later frames still can
reference frames prior to that one (the flag only says that that
particular frame doesn't depend on other frames).

This fixes bug 215.

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