[MPlayer-dev-eng] [PATCH] Frame duration bug due to DEMUXER_TYPE_GIF

Jan Kritzner kritzner at informatik.rwth-aachen.de
Wed Mar 12 17:33:38 CET 2003


Hello,

in video_read_frame a little break is missing since the addition of 
DEMUXER_TYPE_GIF. The messes up the calculation of the frame_time in some 
cases... patch appended.

(apply tmp.tmp)

Jan

P.S.:
A frame is only duplicated when "v_timer_corr" is within the range (-1..0] 
*after* the correction. So when a 15fps video with the frames 1 2 3 is 
encoded, the 30fps video contains frames 1 2 2 3 3 3.
For my needs I prefer having "v_timer_corr" in the range (-0.5..0.5] giving me 
frames 1 1 2 2 3 3.

Bug or feature?

If (Bug) apply tmp2.tmp

-- 
Dipl.-Ing. Jan Kritzner

Aachen University of Technology
Computer Science Department
Informatik IV (Communication and Distributed Systems)
Ahornstr. 55, D-52074 Aachen, Germany
Tel.: +49-241-80-21434
Fax:  +49-241-80-22220
kritzner at i4.informatik.rwth-aachen.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tmp.tmp
Type: text/x-diff
Size: 272 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20030312/4af2d31d/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tmp2.tmp
Type: text/x-diff
Size: 807 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20030312/4af2d31d/attachment-0001.diff>


More information about the MPlayer-dev-eng mailing list