|
|
|
@@ -271,7 +271,7 @@ int ff_h264_init_poc(int pic_field_poc[2], int *pic_poc, |
|
|
|
int picture_structure, int nal_ref_idc) |
|
|
|
{ |
|
|
|
const int max_frame_num = 1 << sps->log2_max_frame_num; |
|
|
|
int field_poc[2]; |
|
|
|
int64_t field_poc[2]; |
|
|
|
|
|
|
|
pc->frame_num_offset = pc->prev_frame_num_offset; |
|
|
|
if (pc->frame_num < pc->prev_frame_num) |
|
|
|
@@ -337,6 +337,10 @@ int ff_h264_init_poc(int pic_field_poc[2], int *pic_poc, |
|
|
|
field_poc[1] = poc; |
|
|
|
} |
|
|
|
|
|
|
|
if ( field_poc[0] != (int)field_poc[0] |
|
|
|
|| field_poc[1] != (int)field_poc[1]) |
|
|
|
return AVERROR_INVALIDDATA; |
|
|
|
|
|
|
|
if (picture_structure != PICT_BOTTOM_FIELD) |
|
|
|
pic_field_poc[0] = field_poc[0]; |
|
|
|
if (picture_structure != PICT_TOP_FIELD) |
|
|
|
|