From: Hendrik Leppkes <h.leppkes@gmail.com>
To: ffmpeg-devel@ffmpeg.org
Subject: Re: [FFmpeg-devel] [PATCH] avcodec/nvdec_mpeg2: fix order of quant matrix coefficients
Date: Mon, 15 May 2023 13:30:59 +0200
Message-ID: <CA+anqdzxX3FVyAsr6nJNfv3=DgjDST0E_DSwn-6G2PX2M4zG8Q@mail.gmail.com> (raw)
In-Reply-To: <20230515105104.1162-1-h.leppkes@gmail.com>
On Mon, May 15, 2023 at 12:51 PM Hendrik Leppkes <h.leppkes@gmail.com> wrote:
>
> mpeg2dec stores them permutated for the IDCT, nvdec expects them in
> plain raster order.
> ---
> libavcodec/nvdec_mpeg12.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/libavcodec/nvdec_mpeg12.c b/libavcodec/nvdec_mpeg12.c
> index e10735587d..3b9ff60734 100644
> --- a/libavcodec/nvdec_mpeg12.c
> +++ b/libavcodec/nvdec_mpeg12.c
> @@ -83,8 +83,9 @@ static int nvdec_mpeg12_start_frame(AVCodecContext *avctx, const uint8_t *buffer
> };
>
> for (i = 0; i < 64; ++i) {
> - ppc->QuantMatrixIntra[i] = s->intra_matrix[i];
> - ppc->QuantMatrixInter[i] = s->inter_matrix[i];
> + int n = s->idsp.idct_permutation[i];
> + ppc->QuantMatrixIntra[i] = s->intra_matrix[n];
> + ppc->QuantMatrixInter[i] = s->inter_matrix[n];
> }
>
> return 0;
> --
> 2.40.1.windows.1
>
Apparently mpeg4 and VDPAU have the same issue. I can test and fix
mpeg4, but do not have VDPAU setup, so .. untested commits incoming?
- Hendrik
_______________________________________________
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:[~2023-05-15 11:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-15 10:51 Hendrik Leppkes
2023-05-15 11:30 ` Hendrik Leppkes [this message]
2023-05-15 12:01 ` Hendrik Leppkes
2023-05-15 11:39 ` [FFmpeg-devel] [PATCH 1/4] " Hendrik Leppkes
2023-05-15 11:39 ` [FFmpeg-devel] [PATCH 2/4] avcodec/nvdec_mpeg4: " Hendrik Leppkes
2023-05-15 11:39 ` [FFmpeg-devel] [PATCH 3/4] avcodec/vdpau_mpeg12: " Hendrik Leppkes
2023-05-15 11:39 ` [FFmpeg-devel] [PATCH 4/4] avcodec/vdpau_mpeg4: " Hendrik Leppkes
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='CA+anqdzxX3FVyAsr6nJNfv3=DgjDST0E_DSwn-6G2PX2M4zG8Q@mail.gmail.com' \
--to=h.leppkes@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