Mercurial > mplayer.hg
changeset 22323:db082b1a4e77
cosmetics: reindented
author | nicodvb |
---|---|
date | Sun, 25 Feb 2007 14:33:19 +0000 |
parents | 980198eb8dcb |
children | 475c60dcd459 |
files | libmpdemux/muxer_mpeg.c |
diffstat | 1 files changed, 8 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/muxer_mpeg.c Sun Feb 25 14:32:14 2007 +0000 +++ b/libmpdemux/muxer_mpeg.c Sun Feb 25 14:33:19 2007 +0000 @@ -1695,19 +1695,17 @@ spriv->last_tr = spriv->max_tr = temp_ref; d1 = temp_ref - spriv->last_tr; if(gop_reset) - { frames_diff = spriv->max_tr + 1 + temp_ref - spriv->last_tr; - } else { - if(d1 < -6) //there's a wraparound - frames_diff = spriv->max_tr + 1 + temp_ref - spriv->last_tr; - else if(d1 > 6) //there's a wraparound - frames_diff = spriv->max_tr + 1 + spriv->last_tr - temp_ref; - else if(!d1) //pre-emptive fix against broken sequences - frames_diff = 1; - else - frames_diff = d1; + if(d1 < -6) //there's a wraparound + frames_diff = spriv->max_tr + 1 + temp_ref - spriv->last_tr; + else if(d1 > 6) //there's a wraparound + frames_diff = spriv->max_tr + 1 + spriv->last_tr - temp_ref; + else if(!d1) //pre-emptive fix against broken sequences + frames_diff = 1; + else + frames_diff = d1; } mp_msg(MSGT_MUXER, MSGL_DBG2, "\nLAST: %d, TR: %d, GOP: %d, DIFF: %d, MAX: %d, d1: %d\n", spriv->last_tr, temp_ref, gop_reset, frames_diff, spriv->max_tr, d1);