You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
Merge commit '77a1e2c5f8f8250dfacff24b993eb473260ed13e'
* commit '77a1e2c5f8f8250dfacff24b993eb473260ed13e': h264: move direct mode inits out of h264_slice_header_parse() Merged-by: Clément Bœsch <clement@stupeflix.com>
This commit is contained in:
@@ -1637,10 +1637,6 @@ static int h264_slice_header_parse(H264Context *h, H264SliceContext *sl)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sl->slice_type_nos == AV_PICTURE_TYPE_B && !sl->direct_spatial_mv_pred)
|
|
||||||
ff_h264_direct_dist_scale_factor(h, sl);
|
|
||||||
ff_h264_direct_ref_list_init(h, sl);
|
|
||||||
|
|
||||||
if (sl->slice_type_nos != AV_PICTURE_TYPE_I && pps->cabac) {
|
if (sl->slice_type_nos != AV_PICTURE_TYPE_I && pps->cabac) {
|
||||||
tmp = get_ue_golomb_31(&sl->gb);
|
tmp = get_ue_golomb_31(&sl->gb);
|
||||||
if (tmp > 2) {
|
if (tmp > 2) {
|
||||||
@@ -1714,6 +1710,10 @@ int ff_h264_decode_slice_header(H264Context *h, H264SliceContext *sl)
|
|||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
if (sl->slice_type_nos == AV_PICTURE_TYPE_B && !sl->direct_spatial_mv_pred)
|
||||||
|
ff_h264_direct_dist_scale_factor(h, sl);
|
||||||
|
ff_h264_direct_ref_list_init(h, sl);
|
||||||
|
|
||||||
if (h->avctx->skip_loop_filter >= AVDISCARD_ALL ||
|
if (h->avctx->skip_loop_filter >= AVDISCARD_ALL ||
|
||||||
(h->avctx->skip_loop_filter >= AVDISCARD_NONKEY &&
|
(h->avctx->skip_loop_filter >= AVDISCARD_NONKEY &&
|
||||||
h->nal_unit_type != NAL_IDR_SLICE) ||
|
h->nal_unit_type != NAL_IDR_SLICE) ||
|
||||||
|
Reference in New Issue
Block a user