diff options
author | James Almer <jamrial@gmail.com> | 2016-08-03 01:20:52 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2016-08-04 16:40:51 -0300 |
commit | be63ef3c4e6399a3ef8d22cc25e9cb3575cf74ae (patch) | |
tree | 414bbdb625ff194ca34b5c90050353d38377dcaf /libavcodec/vdpau_internal.h | |
parent | 376d4b3c0d9d779baef3e2a72ac1ffe77e8508b8 (diff) | |
download | ffmpeg-be63ef3c4e6399a3ef8d22cc25e9cb3575cf74ae.tar.gz |
avcodec/vdpau: clean up vdpau_internal.h
Also don't include it on files that don't need it.
This reduces differences with libav
Tested-by: Timothy Gu <timothygu99@gmail.com>
Reveiwed-by: Carl Eugen Hoyos <ceffmpeg@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/vdpau_internal.h')
-rw-r--r-- | libavcodec/vdpau_internal.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/libavcodec/vdpau_internal.h b/libavcodec/vdpau_internal.h index 8a63733546..77800af33f 100644 --- a/libavcodec/vdpau_internal.h +++ b/libavcodec/vdpau_internal.h @@ -24,15 +24,13 @@ #ifndef AVCODEC_VDPAU_INTERNAL_H #define AVCODEC_VDPAU_INTERNAL_H -#include "config.h" #include <stdint.h> -#if CONFIG_VDPAU #include <vdpau/vdpau.h> -#endif #include "libavutil/frame.h" #include "avcodec.h" +#include "vdpau.h" /** Extract VdpVideoSurface from an AVFrame */ static inline uintptr_t ff_vdpau_get_surface_id(AVFrame *pic) @@ -40,8 +38,6 @@ static inline uintptr_t ff_vdpau_get_surface_id(AVFrame *pic) return (uintptr_t)pic->data[3]; } -struct vdpau_picture_context; -#if CONFIG_VDPAU union VDPAUPictureInfo { VdpPictureInfoH264 h264; VdpPictureInfoMPEG1Or2 mpeg; @@ -55,8 +51,6 @@ union VDPAUPictureInfo { #endif }; -#include "vdpau.h" - typedef struct VDPAUHWContext { AVVDPAUContext context; VdpDevice device; @@ -114,8 +108,6 @@ struct vdpau_picture_context { int ff_vdpau_common_init(AVCodecContext *avctx, VdpDecoderProfile profile, int level); -#endif //CONFIG_VDPAU - int ff_vdpau_common_uninit(AVCodecContext *avctx); int ff_vdpau_common_start_frame(struct vdpau_picture_context *pic, |