[FFmpeg-devel] [PATCH] avutil/hwcontext_cuda: add AVCUDAFramesContext and AVCUDAFramesContext.flags

wm4 nfxjfg at googlemail.com
Tue May 8 18:49:49 EEST 2018


On Tue, 8 May 2018 17:43:49 +0200
Timo Rothenpieler <timo at rothenpieler.org> wrote:

> >> -    frame->buf[0] = av_buffer_pool_get(ctx->pool);
> >> +    if (frctx->flags & AV_CUDA_HWFRAMES_DUMMY_MODE)
> >> +        frame->buf[0] = av_buffer_create(NULL, 0, NULL, NULL, 0);
> >> +    else
> >> +        frame->buf[0] = av_buffer_pool_get(ctx->pool);
> >> +  
> > 
> > Is this really needed? Because at least videotoolbox also lets the
> > decoder allocate frames, and allocates the "dummy" buffers outside of
> > the hwcontext. (I don't quite remember how it works.)  
> 
> You mean compared to just leaving buf[0] empty?
> 

No, compared to how the videotoolbox code does things.


More information about the ffmpeg-devel mailing list