[MPlayer-dev-eng] [PATCH] framerate autodetection fixed for vf_lavc

Nico Sabbi nsabbi at tiscali.it
Mon Jun 27 22:14:05 CEST 2005


Hi,
this patch restores the framerate guessing code in vf_lavc.c, that was 
broken since the
introduction of LIBAVCODEC_BUILD >= 4754.

When lavc filter is auto-inserted (without quality:fps) the .den member 
is 0 but .num > 0,
so the if() in config() isn't run, hence the resulting framerate is 
{something, 0}.

If no one objects I will commit tomorrow.

    Nico
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vf_lavc.diff
Type: text/x-patch
Size: 551 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20050627/7f04fbd8/attachment.bin>


More information about the MPlayer-dev-eng mailing list