Commit 3b8963e4 authored by michael's avatar michael

Fix dist_scale_factor for long term reference pictures.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14536 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 0499fb78
...@@ -880,7 +880,7 @@ static inline void direct_dist_scale_factor(H264Context * const h){ ...@@ -880,7 +880,7 @@ static inline void direct_dist_scale_factor(H264Context * const h){
for(i=0; i<h->ref_count[0]; i++){ for(i=0; i<h->ref_count[0]; i++){
int poc0 = h->ref_list[0][i].poc; int poc0 = h->ref_list[0][i].poc;
int td = av_clip(poc1 - poc0, -128, 127); 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; h->dist_scale_factor[i] = 256;
}else{ }else{
int tb = av_clip(poc - poc0, -128, 127); int tb = av_clip(poc - poc0, -128, 127);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment