diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-08-28 16:03:28 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-08-28 16:03:28 +0200 |
commit | ef768ab9763d265a69d606ca55ad465c272d0b94 (patch) | |
tree | 0e17045518efbe71501d4ff447c1640d34f3ff52 /libavcodec | |
parent | 87961a8a504adf775ed0c58483e26d85827c34aa (diff) | |
download | ffmpeg-ef768ab9763d265a69d606ca55ad465c272d0b94.tar.gz |
avcodec/h264: Move h264_vdpau_class under ifdef to avoid unused variable warning
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/h264.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c index ed1365d1a7..8ed9f48d09 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -2005,13 +2005,6 @@ static const AVClass h264_class = { .version = LIBAVUTIL_VERSION_INT, }; -static const AVClass h264_vdpau_class = { - .class_name = "H264 VDPAU Decoder", - .item_name = av_default_item_name, - .option = h264_options, - .version = LIBAVUTIL_VERSION_INT, -}; - AVCodec ff_h264_decoder = { .name = "h264", .long_name = NULL_IF_CONFIG_SMALL("H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10"), @@ -2032,6 +2025,13 @@ AVCodec ff_h264_decoder = { }; #if CONFIG_H264_VDPAU_DECODER +static const AVClass h264_vdpau_class = { + .class_name = "H264 VDPAU Decoder", + .item_name = av_default_item_name, + .option = h264_options, + .version = LIBAVUTIL_VERSION_INT, +}; + AVCodec ff_h264_vdpau_decoder = { .name = "h264_vdpau", .long_name = NULL_IF_CONFIG_SMALL("H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (VDPAU acceleration)"), |