[FFmpeg-devel] [PATCH 2/2] avcodec/dxva2: check pix_fmt before the loop instead of checking it inside

2019-01-14 Thread Anton Fedchin
--- libavcodec/dxva2.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/libavcodec/dxva2.c b/libavcodec/dxva2.c index e0919d0b1c..dfae500444 100644 --- a/libavcodec/dxva2.c +++ b/libavcodec/dxva2.c @@ -778,9 +778,11 @@ unsigned ff_dxva2_get_surface_index(const AVCodecCon

[FFmpeg-devel] [PATCH 1/2] avcodec/dxva2: d3d11va: don't try to get surface description for nullptr

2019-01-14 Thread Anton Fedchin
From: Anton Fedchin after 153b36f there is a possibility to crash when trying to get index of a surface which points to nirvana. it may occurs when a stream starts with non i-frame. --- libavcodec/dxva2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/dxva2.c b

Re: [FFmpeg-devel] [PATCH] avcodec/dxva2: d3d11va: don't try to get surface description for nullptr

2019-01-11 Thread Anton Fedchin
>2019-01-05 11:44 GMT+01:00, Anton Fedchin : >> From: Anton Fedchin >> >> after 153b36f there is a possibility to crash when trying to get index of >> a surface which points to nirvana. it may occurs when a stream starts with >> non i-frame. >> --- >&

[FFmpeg-devel] [PATCH] avcodec/dxva2: d3d11va: don't try to get surface description for nullptr

2019-01-05 Thread Anton Fedchin
From: Anton Fedchin after 153b36f there is a possibility to crash when trying to get index of a surface which points to nirvana. it may occurs when a stream starts with non i-frame. --- libavcodec/dxva2.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/libavcodec

[FFmpeg-devel] [PATCH] avcodec/dxva2_mpeg2.c: don't try to get surface index for absent frame

2018-12-26 Thread Anton Fedchin
From: Anton Fedchin after 153b36f there is a possibility to crash when trying to get index of a surface which points to nirvana. it may occurs when a mpeg2 stream starts with non i-frame. --- libavcodec/dxva2_mpeg2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a

Re: [FFmpeg-devel] DXVA Question.

2015-04-26 Thread Anton Fedchin
Hendrik Leppkes gmail.com> writes: > > On Sun, Apr 26, 2015 at 8:45 AM, Anton Fedchin gmail.com> wrote: > > Hi, > > > > I'm working on porting our project Kodi to DirectX11. We also use ffmpeg > > and I've implemented patch to ffmpeg dxva rela

[FFmpeg-devel] DXVA Question.

2015-04-26 Thread Anton Fedchin
Hi, I'm working on porting our project Kodi to DirectX11. We also use ffmpeg and I've implemented patch to ffmpeg dxva related code to work with d3d11 video API. It works good. Before we send the patch we have a question. Question is what you prefer a configure switch or something else? _