]> git.sesse.net Git - ffmpeg/blobdiff - libavutil/hwcontext.c
lavu: improve documentation of some AVFrame functions
[ffmpeg] / libavutil / hwcontext.c
index 05c50a42ebf2499c4f5646c26e792cf390ee2af0..3eada297427968f8a75b56f194f959f2738a0b41 100644 (file)
 #include "pixfmt.h"
 
 static const HWContextType *hw_table[] = {
+#if CONFIG_CUDA
+    &ff_hwcontext_type_cuda,
+#endif
+#if CONFIG_VDPAU
+    &ff_hwcontext_type_vdpau,
+#endif
     NULL,
 };
 
@@ -164,7 +170,7 @@ AVBufferRef *av_hwframe_ctx_alloc(AVBufferRef *device_ref_in)
     AVHWDeviceContext *device_ctx = (AVHWDeviceContext*)device_ref_in->data;
     const HWContextType  *hw_type = device_ctx->internal->hw_type;
     AVHWFramesContext *ctx;
-    AVBufferRef *buf, *device_ref = NULL;;
+    AVBufferRef *buf, *device_ref = NULL;
 
     ctx = av_mallocz(sizeof(*ctx));
     if (!ctx)