Commit ef768ab9 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/h264: Move h264_vdpau_class under ifdef to avoid unused variable warning

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 87961a8a
...@@ -2005,13 +2005,6 @@ static const AVClass h264_class = { ...@@ -2005,13 +2005,6 @@ static const AVClass h264_class = {
.version = LIBAVUTIL_VERSION_INT, .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 = { AVCodec ff_h264_decoder = {
.name = "h264", .name = "h264",
.long_name = NULL_IF_CONFIG_SMALL("H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10"), .long_name = NULL_IF_CONFIG_SMALL("H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10"),
...@@ -2032,6 +2025,13 @@ AVCodec ff_h264_decoder = { ...@@ -2032,6 +2025,13 @@ AVCodec ff_h264_decoder = {
}; };
#if CONFIG_H264_VDPAU_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 = { AVCodec ff_h264_vdpau_decoder = {
.name = "h264_vdpau", .name = "h264_vdpau",
.long_name = NULL_IF_CONFIG_SMALL("H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (VDPAU acceleration)"), .long_name = NULL_IF_CONFIG_SMALL("H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (VDPAU acceleration)"),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment