[FFmpeg-devel] [PATCH 3/4] avcodec/h264_slice: support skipping loop filtering for non key frames
Michael Niedermayer
michaelni at gmx.at
Sat Jun 7 20:56:19 CEST 2014
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
libavcodec/h264_slice.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavcodec/h264_slice.c b/libavcodec/h264_slice.c
index deb6720..5112053 100644
--- a/libavcodec/h264_slice.c
+++ b/libavcodec/h264_slice.c
@@ -1856,6 +1856,8 @@ int ff_h264_decode_slice_header(H264Context *h, H264Context *h0)
}
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->slice_type_nos != AV_PICTURE_TYPE_I) ||
(h->avctx->skip_loop_filter >= AVDISCARD_BIDIR &&
--
1.7.9.5
More information about the ffmpeg-devel
mailing list