[FFmpeg-devel] [PATCH v2 1/5] avutil/hwcontext_d3d11va: fix the uninitialized texture bindflag

Hendrik Leppkes h.leppkes at gmail.com
Sat Apr 30 01:01:49 EEST 2022


On Fri, Apr 29, 2022 at 12:45 PM Tong Wu
<tong1.wu-at-intel.com at ffmpeg.org> wrote:
>
> When uploading rawvideos using d3d11va hardware framecontext, the bindflag
> is not initialized and will cause creating texture failure. Now fix it,
> assign it the value of D3D11_BIND_RENDER_TARGET.
>

As with similar fixes of this nature, this implicit behavior to fix
one particular bug does not seem fitting inside the hwcontext itself.
There can be a large list of usages of the hwcontext that all require
different BindFlags, but we can only define one default - why this one
specifically?

So rather:

Where is the context created?
Why is a required flag not set there? That would be better, because
that knows what flags it needs.

- Hendrik


More information about the ffmpeg-devel mailing list