mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-19 23:26:14 +08:00
h264: move reading direct_spatial_mv_pred out of ff_set_ref_count()
It has nothing to do with the reference count and so does not belong in this function.
This commit is contained in:
@@ -117,6 +117,9 @@ static int scan_mmco_reset(AVCodecParserContext *s)
|
||||
if (h->pps.redundant_pic_cnt_present)
|
||||
get_ue_golomb(&sl->gb); // redundant_pic_count
|
||||
|
||||
if (sl->slice_type_nos == AV_PICTURE_TYPE_B)
|
||||
get_bits1(&sl->gb); // direct_spatial_mv_pred
|
||||
|
||||
if (ff_set_ref_count(h, sl) < 0)
|
||||
return AVERROR_INVALIDDATA;
|
||||
|
||||
|
Reference in New Issue
Block a user