h264: eliminate max_contexts

It is always equal to nb_slice_ctx.
This commit is contained in:
Anton Khirnov 2016-04-13 17:33:59 +02:00
parent e3c9041cfe
commit 2e5bde9565
3 changed files with 2 additions and 11 deletions

View file

@ -1462,7 +1462,7 @@ int ff_h264_decode_slice_header(H264Context *h, H264SliceContext *sl)
h->nal_ref_idc == 0))
sl->deblocking_filter = 0;
if (sl->deblocking_filter == 1 && h->max_contexts > 1) {
if (sl->deblocking_filter == 1 && h->nb_slice_ctx > 1) {
if (h->avctx->flags2 & AV_CODEC_FLAG2_FAST) {
/* Cheat slightly for speed:
* Do not bother to deblock across slices. */