On Fri, Apr 29, 2022 at 12:45 PM Tong Wu <tong1.wu-at-intel....@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 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".