h264: fix direct temporal mvs for bottom-field-first poc order.
Fixes http://forum.doom9.org/showthread.php?t=170867. Fixes: corrupt-1677.mkv Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
1e3f77b53a
commit
ebd1c505d2
@ -48,7 +48,9 @@ static int get_scale_factor(H264Context * const h, int poc, int poc1, int i){
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ff_h264_direct_dist_scale_factor(H264Context * const h){
|
void ff_h264_direct_dist_scale_factor(H264Context * const h){
|
||||||
const int poc = h->cur_pic_ptr->field_poc[h->picture_structure == PICT_BOTTOM_FIELD];
|
const int poc = h->picture_structure == PICT_FRAME ?
|
||||||
|
h->cur_pic_ptr->poc :
|
||||||
|
h->cur_pic_ptr->field_poc[h->picture_structure == PICT_BOTTOM_FIELD];
|
||||||
const int poc1 = h->ref_list[1][0].poc;
|
const int poc1 = h->ref_list[1][0].poc;
|
||||||
int i, field;
|
int i, field;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user