[FFmpeg-cvslog] r14536 - trunk/libavcodec/h264.c

michael subversion
Mon Aug 4 13:17:22 CEST 2008


Author: michael
Date: Mon Aug  4 13:17:22 2008
New Revision: 14536

Log:
Fix dist_scale_factor for long term reference pictures.


Modified:
   trunk/libavcodec/h264.c

Modified: trunk/libavcodec/h264.c
==============================================================================
--- trunk/libavcodec/h264.c	(original)
+++ trunk/libavcodec/h264.c	Mon Aug  4 13:17:22 2008
@@ -880,7 +880,7 @@ static inline void direct_dist_scale_fac
     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);




More information about the ffmpeg-cvslog mailing list