[MPlayer-dev-eng] [PATCH] Add necessary keyframe when using edit list in MOV demuxer

John Schmiederer jschmiederer at on2.com
Fri Aug 24 17:30:10 CEST 2007


This patch fixes incorrect playback of videos when using edit lists 
where the start frame isn't a keyframe.
Note that there was a previously proposed patch, which was never 
applied, that caused side effects in some videos I tested it on.

This patch's behavior follows what was suggested in that discussion: use 
the previous keyframe for decoding, but use the edit list for display.
demux_mov_fill_buffer adds the frames between the previous keyframe and 
edl start to the buffer stream, but doesn't return to mplayer until it 
reaches the edl start, which will be when display will begin.

Prior discussion:
http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/2006-July/044181.html

The sample videos are still located at:
http://samples.mplayerhq.hu/mov/editlist/mov_edl_kf_fix_1.mp4
http://samples.mplayerhq.hu/mov/editlist/mov_edl_kf_fix_2.mp4

-John
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: edl_kf_fix.diff
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20070824/bbe503f7/attachment.txt>


More information about the MPlayer-dev-eng mailing list