Re: [FFmpeg-devel] [PATCH] Fix crash if av_vdpau_bind_context() is not used.

2017-10-12 Thread Ivan Kalvachev
On 10/13/17, Carl Eugen Hoyos wrote: > 2017-10-09 2:04 GMT+02:00 Ivan Kalvachev : >> The public functions av_alloc_vdpaucontext() and >> av_vdpau_alloc_context() are allocating AVVDPAUContext >> structure that is supposed to be placed in avctx->hwaccel_context. >> >> However the rest of libavcodec

Re: [FFmpeg-devel] [PATCH] Fix crash if av_vdpau_bind_context() is not used.

2017-10-12 Thread Ivan Kalvachev
On 10/11/17, Ivan Kalvachev wrote: > On 10/10/17, wm4 wrote: >> On Tue, 10 Oct 2017 03:24:56 +0300 >> Ivan Kalvachev wrote: >> >>> On 10/9/17, wm4 wrote: >>> > On Mon, 9 Oct 2017 03:04:53 +0300 >>> > Ivan Kalvachev wrote: >>> > >>> >> The public functions av_alloc_vdpaucontext() and >>> >> av_

Re: [FFmpeg-devel] [PATCH] Fix crash if av_vdpau_bind_context() is not used.

2017-10-12 Thread Carl Eugen Hoyos
2017-10-09 2:04 GMT+02:00 Ivan Kalvachev : > The public functions av_alloc_vdpaucontext() and > av_vdpau_alloc_context() are allocating AVVDPAUContext > structure that is supposed to be placed in avctx->hwaccel_context. > > However the rest of libavcodec/vdpau.c uses avctx->hwaccel_context > as str

Re: [FFmpeg-devel] [PATCH] Fix crash if av_vdpau_bind_context() is not used.

2017-10-11 Thread Ivan Kalvachev
On 10/10/17, wm4 wrote: > On Tue, 10 Oct 2017 03:24:56 +0300 > Ivan Kalvachev wrote: > >> On 10/9/17, wm4 wrote: >> > On Mon, 9 Oct 2017 03:04:53 +0300 >> > Ivan Kalvachev wrote: >> > >> >> The public functions av_alloc_vdpaucontext() and >> >> av_vdpau_alloc_context() are allocating AVVDPAUCon

Re: [FFmpeg-devel] [PATCH] Fix crash if av_vdpau_bind_context() is not used.

2017-10-10 Thread wm4
On Tue, 10 Oct 2017 03:24:56 +0300 Ivan Kalvachev wrote: > On 10/9/17, wm4 wrote: > > On Mon, 9 Oct 2017 03:04:53 +0300 > > Ivan Kalvachev wrote: > > > >> The public functions av_alloc_vdpaucontext() and > >> av_vdpau_alloc_context() are allocating AVVDPAUContext > >> structure that is suppos

Re: [FFmpeg-devel] [PATCH] Fix crash if av_vdpau_bind_context() is not used.

2017-10-09 Thread James Almer
On 10/9/2017 8:30 AM, wm4 wrote: > On Mon, 9 Oct 2017 03:04:53 +0300 > Ivan Kalvachev wrote: > >> The public functions av_alloc_vdpaucontext() and >> av_vdpau_alloc_context() are allocating AVVDPAUContext >> structure that is supposed to be placed in avctx->hwaccel_context. >> >> However the rest

Re: [FFmpeg-devel] [PATCH] Fix crash if av_vdpau_bind_context() is not used.

2017-10-09 Thread Ivan Kalvachev
On 10/9/17, wm4 wrote: > On Mon, 9 Oct 2017 03:04:53 +0300 > Ivan Kalvachev wrote: > >> The public functions av_alloc_vdpaucontext() and >> av_vdpau_alloc_context() are allocating AVVDPAUContext >> structure that is supposed to be placed in avctx->hwaccel_context. >> >> However the rest of libavc

Re: [FFmpeg-devel] [PATCH] Fix crash if av_vdpau_bind_context() is not used.

2017-10-09 Thread wm4
On Mon, 9 Oct 2017 03:04:53 +0300 Ivan Kalvachev wrote: > The public functions av_alloc_vdpaucontext() and > av_vdpau_alloc_context() are allocating AVVDPAUContext > structure that is supposed to be placed in avctx->hwaccel_context. > > However the rest of libavcodec/vdpau.c uses avctx->hwaccel_

[FFmpeg-devel] [PATCH] Fix crash if av_vdpau_bind_context() is not used.

2017-10-08 Thread Ivan Kalvachev
The public functions av_alloc_vdpaucontext() and av_vdpau_alloc_context() are allocating AVVDPAUContext structure that is supposed to be placed in avctx->hwaccel_context. However the rest of libavcodec/vdpau.c uses avctx->hwaccel_context as struct VDPAUHWContext, that is bigger and does contain AV