Re: [FFmpeg-devel] [PATCH] avcodec/cuviddec: fix AV1 decoding error

2022-06-24 Thread James Almer
On 6/24/2022 1:04 AM, Zhao Zhili wrote: From: Zhao Zhili cuvidParseVideoData only supports pure OBUs, it report unknown error with AV1CodecConfigurationRecord. Check whether extradata is AV1CodecConfigurationRecord and skip the first 4 bytes to fix the issue. The bug is revealed in ffmpeg cmd

Re: [FFmpeg-devel] [PATCH] avcodec/cuviddec: fix AV1 decoding error

2022-06-23 Thread zhilizhao(赵志立)
> On Jun 24, 2022, at 10:52 AM, zhilizhao(赵志立) wrote: > > > >> On Jun 23, 2022, at 10:14 PM, Timo Rothenpieler >> wrote: >> >> On 23/06/2022 11:10, Zhao Zhili wrote: >>> From: Zhao Zhili >>> Regression from 45e3b6a68. cuvidParseVideoData report unknown >>> error with AV1CodecConfiguration

[FFmpeg-devel] [PATCH] avcodec/cuviddec: fix AV1 decoding error

2022-06-23 Thread Zhao Zhili
From: Zhao Zhili cuvidParseVideoData only supports pure OBUs, it report unknown error with AV1CodecConfigurationRecord. Check whether extradata is AV1CodecConfigurationRecord and skip the first 4 bytes to fix the issue. The bug is revealed in ffmpeg cmd since 45e3b6a68 and ffd1316e. --- libavco

Re: [FFmpeg-devel] [PATCH] avcodec/cuviddec: fix AV1 decoding error

2022-06-23 Thread zhilizhao(赵志立)
> On Jun 23, 2022, at 10:14 PM, Timo Rothenpieler wrote: > > On 23/06/2022 11:10, Zhao Zhili wrote: >> From: Zhao Zhili >> Regression from 45e3b6a68. cuvidParseVideoData report unknown >> error with AV1CodecConfigurationRecord. >> --- >> libavcodec/cuviddec.c | 11 +++ >> 1 file chang

Re: [FFmpeg-devel] [PATCH] avcodec/cuviddec: fix AV1 decoding error

2022-06-23 Thread Timo Rothenpieler
On 23/06/2022 11:10, Zhao Zhili wrote: From: Zhao Zhili Regression from 45e3b6a68. cuvidParseVideoData report unknown error with AV1CodecConfigurationRecord. --- libavcodec/cuviddec.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/libavcodec/cuviddec.c b/libavcodec/cuviddec

[FFmpeg-devel] [PATCH] avcodec/cuviddec: fix AV1 decoding error

2022-06-23 Thread Zhao Zhili
From: Zhao Zhili Regression from 45e3b6a68. cuvidParseVideoData report unknown error with AV1CodecConfigurationRecord. --- libavcodec/cuviddec.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/libavcodec/cuviddec.c b/libavcodec/cuviddec.c index cb3cda7e24..584fff40ed 100644 ---