mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-23 01:12:20 +08:00
初步完成Windows下的移植
This commit is contained in:
@@ -113,7 +113,7 @@ namespace media {
|
||||
// (assuming no interlacing).
|
||||
int32_t top_foc = pic_order_cnt_msb + slice_hdr.pic_order_cnt_lsb;
|
||||
int32_t bottom_foc = top_foc + slice_hdr.delta_pic_order_cnt_bottom;
|
||||
*pic_order_cnt = std::min(top_foc, bottom_foc);
|
||||
*pic_order_cnt = min(top_foc, bottom_foc);
|
||||
|
||||
// Store state.
|
||||
prev_frame_num_ = slice_hdr.frame_num;
|
||||
@@ -182,7 +182,7 @@ namespace media {
|
||||
int32_t top_foc = expected_pic_order_cnt + slice_hdr.delta_pic_order_cnt0;
|
||||
int32_t bottom_foc = top_foc + sps->offset_for_top_to_bottom_field +
|
||||
slice_hdr.delta_pic_order_cnt1;
|
||||
*pic_order_cnt = std::min(top_foc, bottom_foc);
|
||||
*pic_order_cnt = min(top_foc, bottom_foc);
|
||||
|
||||
// Store state.
|
||||
prev_frame_num_ = slice_hdr.frame_num;
|
||||
|
||||
Reference in New Issue
Block a user