From 577393321c389ad2973bec6168a8045c94a9e099 Mon Sep 17 00:00:00 2001 From: Vittorio Giovara Date: Fri, 19 Feb 2016 19:59:51 -0500 Subject: intrax8: Carry over the loopfilter value in ff_intrax8_decode_picture Helps in decoupling this code from mpegvideo. --- libavcodec/intrax8.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libavcodec/intrax8.c') diff --git a/libavcodec/intrax8.c b/libavcodec/intrax8.c index 0082591c6b..a3e21a336c 100644 --- a/libavcodec/intrax8.c +++ b/libavcodec/intrax8.c @@ -712,7 +712,7 @@ block_placed: if (!chroma) x8_update_predictions(w, w->orient, n); - if (s->loop_filter) { + if (w->loopfilter) { uint8_t *ptr = w->dest[chroma]; int linesize = s->current_picture.f->linesize[!!chroma]; @@ -776,7 +776,7 @@ av_cold void ff_intrax8_common_end(IntraX8Context *w) } int ff_intrax8_decode_picture(IntraX8Context *const w, int dquant, - int quant_offset) + int quant_offset, int loopfilter) { MpegEncContext *const s = w->s; int mb_xy; @@ -786,6 +786,7 @@ int ff_intrax8_decode_picture(IntraX8Context *const w, int dquant, w->dquant = dquant; w->quant = dquant >> 1; w->qsum = quant_offset; + w->loopfilter = loopfilter; w->divide_quant_dc_luma = ((1 << 16) + (w->quant >> 1)) / w->quant; if (w->quant < 5) { -- cgit v1.2.3