From f1fa1eed2abdc8dfb0af318a43f5d293b81141bd Mon Sep 17 00:00:00 2001 From: Vittorio Giovara Date: Wed, 10 Jun 2015 14:29:07 +0100 Subject: mpegvideo: Expand macro Having this macro in an header only facilitates the use of such header. The code increase is minimal and files have one less dependency on mpegvideo.h. --- libavcodec/h261enc.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'libavcodec/h261enc.c') diff --git a/libavcodec/h261enc.c b/libavcodec/h261enc.c index ae61fc24c4..db81f832a7 100644 --- a/libavcodec/h261enc.c +++ b/libavcodec/h261enc.c @@ -324,7 +324,12 @@ av_cold void ff_h261_encode_init(MpegEncContext *s) s->c_dc_scale_table = ff_mpeg1_dc_scale_table; } -FF_MPV_GENERIC_CLASS(h261) +static const AVClass h261_class = { + .class_name = "h261 encoder", + .item_name = av_default_item_name, + .option = ff_mpv_generic_options, + .version = LIBAVUTIL_VERSION_INT, +}; AVCodec ff_h261_encoder = { .name = "h261", -- cgit v1.2.1