[FFmpeg-devel] [PATCH] Correct space color when using libopenjpeg

2023-03-11 Thread Wang Chuan
When decoding jp2 with palette, [color space] is determined when calling [opj_decode]. Because of this, [pix_fmt] should be set after decoding. Otherwise, [pix_fmt] will be set to AV_PIX_FMT_GRAY8 and output an wrong image. Signed-off-by: Wang Chuan --- libavcodec/libopenjpegdec.c | 35

[FFmpeg-devel] [PATCH] d3d11va: let user can create SRV from output

2022-03-08 Thread Wang Chuan
Starting from Windows 8, users can create SRV from video resource and bind it to shaders directly. This can avoid unnecessary memcpy (ID3D11DeviceContext::CopyResource, etc), so create texture with [D3D11_BIND_SHADER_RESOURCE] as decoder's output if possible. Signed-off-by: Wang

Re: [FFmpeg-devel] [PATCH 2/2] libavformat/mov: fix udta reading in trak box

2022-02-11 Thread Wang Chuan
On Feb 9, 2022, 7:31 AM +0800, Jan Ekström , wrote: > On Tue, Feb 8, 2022 at 9:48 AM Wang Chuan wrote: > > > > Any news? > > > > Sorry, was not able to get to this according to the time line I > expected. Will see if I can find some time for this soon. > > T

Re: [FFmpeg-devel] [PATCH 2/2] libavformat/mov: fix udta reading in trak box

2022-02-07 Thread Wang Chuan
Any news? On 2022/2/4 19:10, Jan Ekström wrote: On Fri, Feb 4, 2022 at 5:24 AM Wang Chuan wrote: Ping? On Jan 28, 2022, 11:24 AM +0800, Wang Chuan , wrote: if we are reading udta in trak box, the data should go to metadata of current stream. Signed-off-by: Wang Chuan --- libavformat/mov.c

Re: [FFmpeg-devel] [PATCH 2/2] libavformat/mov: fix udta reading in trak box

2022-02-03 Thread Wang Chuan
Ping? On Jan 28, 2022, 11:24 AM +0800, Wang Chuan , wrote: > if we are reading udta in trak box, the data should go to metadata > of current stream. > > Signed-off-by: Wang Chuan > --- > libavformat/mov.c | 5 - > 1 file changed, 4 insertions(+), 1 deletion(-) > &g

[FFmpeg-devel] [PATCH 2/2] libavformat/mov: fix udta reading in trak box

2022-01-27 Thread Wang Chuan
if we are reading udta in trak box, the data should go to metadata of current stream. Signed-off-by: Wang Chuan --- libavformat/mov.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libavformat/mov.c b/libavformat/mov.c index 1437d160f8..cb983defb3 100644 --- a

[FFmpeg-devel] [PATCH 1/2] avformat/movenc: fix type of 'Title of the content' in udta box

2022-01-27 Thread Wang Chuan
itle in mov_read_udta_string(mov.c) Signed-off-by: Wang Chuan --- libavformat/movenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 4c868919ae..c4dcb41fbb 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -337

Re: [FFmpeg-devel] [PATCH] avformat/aviobuf: let avio_read can retry when timeout

2022-01-13 Thread Wang Chuan
11:21, "zhilizhao(赵志立)" wrote: On Jan 14, 2022, at 10:42 AM, Wang Chuan wrote: If we meet timeout when reading network resource, avio_read will set [eof_reached] to 1. And this prevent caller to retry since avio_read do nothing and just return if eof_reached == 1. If timeout was

[FFmpeg-devel] [PATCH] avformat/aviobuf: let avio_read can retry when timeout

2022-01-13 Thread Wang Chuan
If we meet timeout when reading network resource, avio_read will set [eof_reached] to 1. And this prevent caller to retry since avio_read do nothing and just return if eof_reached == 1. Signed-off-by: Wang Chuan --- libavformat/aviobuf.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions

[FFmpeg-devel] [PATCH] libavcodec/videotoolbox: let VideoToolbox choose a decoder for us

2020-08-01 Thread Wang Chuan
If we fail to create a decoder specified by ourself, then try to let VideoToolbox pick a proper one for us. Signed-off-by: Wang Chuan --- libavcodec/videotoolbox.c | 4 1 file changed, 4 insertions(+) diff --git a/libavcodec/videotoolbox.c b/libavcodec/videotoolbox.c index 8773de3393