Commit ebd1c505 authored by Ronald S. Bultje's avatar Ronald S. Bultje Committed by Michael Niedermayer

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: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 1e3f77b5
......@@ -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){
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;
int i, field;
......
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