From: Sean McGovern <gseanmcg@gmail.com>
To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Subject: Re: [FFmpeg-devel] [PATCH] libavcodec/libxvid: code cleanup (replace magic numbers)
Date: Thu, 30 May 2024 17:23:59 -0400
Message-ID: <CAPBf_OnrAb4D7beRm1nBjSYeF9ME-kqhn-Myha6hVLE-yxqmWg@mail.gmail.com> (raw)
In-Reply-To: <20240530212007.1032494-1-ramiro.polla@gmail.com>
On Thu, May 30, 2024 at 5:20 PM Ramiro Polla <ramiro.polla@gmail.com> wrote:
>
> ---
> libavcodec/libxvid.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/libavcodec/libxvid.c b/libavcodec/libxvid.c
> index b9ac39429d..a490f16b3f 100644
> --- a/libavcodec/libxvid.c
> +++ b/libavcodec/libxvid.c
> @@ -422,13 +422,13 @@ static av_cold int xvid_encode_init(AVCodecContext *avctx)
>
> /* Decide how we should decide blocks */
> switch (avctx->mb_decision) {
> - case 2:
> + case FF_MB_DECISION_RD:
> x->vop_flags |= XVID_VOP_MODEDECISION_RD;
> x->me_flags |= XVID_ME_HALFPELREFINE8_RD |
> XVID_ME_QUARTERPELREFINE8_RD |
> XVID_ME_EXTSEARCH_RD |
> XVID_ME_CHECKPREDICTION_RD;
> - case 1:
> + case FF_MB_DECISION_BITS:
> if (!(x->vop_flags & XVID_VOP_MODEDECISION_RD))
> x->vop_flags |= XVID_VOP_FAST_MODEDECISION_RD;
> x->me_flags |= XVID_ME_HALFPELREFINE16_RD |
> --
> 2.30.2
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
This gets a +1 from me.
-- Sean McGover
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
next prev parent reply other threads:[~2024-05-30 21:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-30 21:20 Ramiro Polla
2024-05-30 21:23 ` Sean McGovern [this message]
2024-06-04 12:54 ` Ramiro Polla
2024-06-05 17:41 ` Ramiro Polla
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAPBf_OnrAb4D7beRm1nBjSYeF9ME-kqhn-Myha6hVLE-yxqmWg@mail.gmail.com \
--to=gseanmcg@gmail.com \
--cc=ffmpeg-devel@ffmpeg.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git