avcodec/h264_slice: support skipping loop filtering for non key frames
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
9140d37af2
commit
9025072e6c
@ -1856,6 +1856,8 @@ int ff_h264_decode_slice_header(H264Context *h, H264Context *h0)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (h->avctx->skip_loop_filter >= AVDISCARD_ALL ||
|
if (h->avctx->skip_loop_filter >= AVDISCARD_ALL ||
|
||||||
|
(h->avctx->skip_loop_filter >= AVDISCARD_NONKEY &&
|
||||||
|
h->nal_unit_type != NAL_IDR_SLICE) ||
|
||||||
(h->avctx->skip_loop_filter >= AVDISCARD_NONINTRA &&
|
(h->avctx->skip_loop_filter >= AVDISCARD_NONINTRA &&
|
||||||
h->slice_type_nos != AV_PICTURE_TYPE_I) ||
|
h->slice_type_nos != AV_PICTURE_TYPE_I) ||
|
||||||
(h->avctx->skip_loop_filter >= AVDISCARD_BIDIR &&
|
(h->avctx->skip_loop_filter >= AVDISCARD_BIDIR &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user