diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-08-04 11:17:22 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-08-04 11:17:22 +0000 |
commit | 4c0d57bdef599c3e70e06208269f8586a05c301e (patch) | |
tree | a5052dab68d8ca2c1bc4a7ae196a6dac2cd5da14 /libavcodec | |
parent | 0e589ce1518237863a8e63e3dccdd732f86e469f (diff) | |
download | ffmpeg-4c0d57bdef599c3e70e06208269f8586a05c301e.tar.gz |
Fix dist_scale_factor for long term reference pictures.
Originally committed as revision 14536 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/h264.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 5de23da509..b90db49b19 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -880,7 +880,7 @@ static inline void direct_dist_scale_factor(H264Context * const h){ 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); |