diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2025-06-22 15:22:38 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2025-07-03 20:35:32 +0200 |
commit | abc54c25befa2f2ca4ecea23d4feb12922e6c44f (patch) | |
tree | 5ee602b90a0da4b77ffed38c3df2e4ddbbb119dc /libavcodec/mpegvideo_enc.c | |
parent | 60f51bdaac29121fca429274dfa2d8431999d571 (diff) | |
download | ffmpeg-abc54c25befa2f2ca4ecea23d4feb12922e6c44f.tar.gz |
avcodec/mpegvideo: Move loop_filter to {H263Dec,MPVEnc,VC1}Context
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/mpegvideo_enc.c')
-rw-r--r-- | libavcodec/mpegvideo_enc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c index e7f40f5d60..3ab097d6f6 100644 --- a/libavcodec/mpegvideo_enc.c +++ b/libavcodec/mpegvideo_enc.c @@ -654,7 +654,7 @@ av_cold int ff_mpv_encode_init(AVCodecContext *avctx) (s->mpv_flags & FF_MPV_FLAG_QP_RD)) && !m->fixed_qscale; - s->c.loop_filter = !!(avctx->flags & AV_CODEC_FLAG_LOOP_FILTER); + s->loop_filter = !!(avctx->flags & AV_CODEC_FLAG_LOOP_FILTER); if (avctx->rc_max_rate && !avctx->rc_buffer_size) { switch(avctx->codec_id) { @@ -925,8 +925,8 @@ av_cold int ff_mpv_encode_init(AVCodecContext *avctx) /* Fx */ s->c.h263_aic = (avctx->flags & AV_CODEC_FLAG_AC_PRED) ? 1 : 0; s->modified_quant = s->c.h263_aic; - s->c.loop_filter = (avctx->flags & AV_CODEC_FLAG_LOOP_FILTER) ? 1 : 0; - s->me.unrestricted_mv = s->c.obmc || s->c.loop_filter || s->umvplus; + s->loop_filter = !!(avctx->flags & AV_CODEC_FLAG_LOOP_FILTER); + s->me.unrestricted_mv = s->c.obmc || s->loop_filter || s->umvplus; s->flipflop_rounding = 1; /* /Fx */ @@ -959,7 +959,7 @@ av_cold int ff_mpv_encode_init(AVCodecContext *avctx) // Set here to force allocation of dc_val; // will be set later on a per-frame basis. s->c.h263_aic = 1; - s->c.loop_filter = 1; + s->loop_filter = 1; s->me.unrestricted_mv = 0; break; #endif @@ -3603,7 +3603,7 @@ static int encode_thread(AVCodecContext *c, void *arg){ s, s->new_pic->data[2] + s->c.mb_x*8 + s->c.mb_y*s->c.uvlinesize*chr_h, s->c.dest[2], w>>1, h>>s->c.chroma_y_shift, s->c.uvlinesize); } - if (s->c.loop_filter) { + if (s->loop_filter) { if (CONFIG_H263_ENCODER && s->c.out_format == FMT_H263) ff_h263_loop_filter(&s->c); } |