Mercurial > libavcodec.hg
diff h264.c @ 7479:6abd94f87b45 libavcodec
Fix dist_scale_factor for long term reference pictures.
author | michael |
---|---|
date | Mon, 04 Aug 2008 11:17:22 +0000 |
parents | 9ed1ef44127b |
children | 82918a570d86 |
line wrap: on
line diff
--- a/h264.c Mon Aug 04 08:25:38 2008 +0000 +++ b/h264.c Mon Aug 04 11:17:22 2008 +0000 @@ -880,7 +880,7 @@ for(i=0; i<h->ref_count[0]; i++){ int poc0 = h->ref_list[0][i].poc; int td = av_clip(poc1 - poc0, -128, 127); - if(td == 0 /* FIXME || pic0 is a long-term ref */){ + if(td == 0 || h->ref_list[0][i].long_ref){ h->dist_scale_factor[i] = 256; }else{ int tb = av_clip(poc - poc0, -128, 127);