On Tue, Sep 15, 2015 at 4:36 PM, Steve Lhomme <rob...@gmail.com> wrote: > From: Steve Lhomme <rob...@gmail.com> > > -- > now with an allocation function for the structure > --- > libavcodec/Makefile | 2 +- > libavcodec/d3d11va.c | 33 +++++++++++++++++++++++++++++++++ > libavcodec/d3d11va.h | 17 +++++++++++++++-- > libavcodec/dxva2.c | 15 +++++++++++++-- > libavcodec/version.h | 2 +- > 5 files changed, 63 insertions(+), 6 deletions(-) > create mode 100644 libavcodec/d3d11va.c > > diff --git a/libavcodec/d3d11va.h b/libavcodec/d3d11va.h > index f5777c2..df06275 100644 > --- a/libavcodec/d3d11va.h > +++ b/libavcodec/d3d11va.h > @@ -54,7 +54,7 @@ > * > * The application must make it available as AVCodecContext.hwaccel_context. > */ > -struct AVD3D11VAContext { > +typedef struct AVD3D11VAContext { > /** > * D3D11 decoder object > */ > @@ -89,7 +89,20 @@ struct AVD3D11VAContext { > * Private to the Libav AVHWAccel implementation > */ > unsigned report_id; > -}; > + > + /** > + * Mutex to access video_context > + */ > + HANDLE context_mutex; > +} AVD3D11VAContext; > + > +/** > + * Allocate an AVD3D11VAContext. > + * > + * @return Newly-allocated AVD3D11VAContext or NULL on failure. > + */ > +AVD3D11VAContext *av_d3d11va_alloc_context(void); > +
this should be added to doc/APIChanges. nit: stray line? -- Vittorio _______________________________________________ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel