# HG changeset patch # User rik # Date 1086256345 0 # Node ID 74968e3440ffcadf7f5e0aebfb9bf6e49bb87e3a # Parent debda3544d322d38521d82b95de5842bc3494c97 fix bug reported by Leonardo Giordani: sh->aspect is not pixel aspect but movie aspect diff -r debda3544d32 -r 74968e3440ff libmpdemux/demux_y4m.c --- a/libmpdemux/demux_y4m.c Wed Jun 02 23:14:13 2004 +0000 +++ b/libmpdemux/demux_y4m.c Thu Jun 03 09:52:25 2004 +0000 @@ -195,11 +195,13 @@ sh->frametime=1.0f/sh->fps; ratio = y4m_si_get_sampleaspect(priv->si); - if (ratio.d != 0 && ratio.n != 0) - sh->aspect = (float)ratio.n/(float)ratio.d; sh->disp_w = y4m_si_get_width(priv->si); sh->disp_h = y4m_si_get_height(priv->si); + + if (ratio.d != 0 && ratio.n != 0) + sh->aspect = (float)(sh->disp_w*ratio.n)/(float)(sh->disp_h*ratio.d); + demuxer->seekable = 0; }