diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2015-06-10 14:29:07 +0100 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2015-06-12 12:29:46 +0100 |
commit | f1fa1eed2abdc8dfb0af318a43f5d293b81141bd (patch) | |
tree | 0e4bcb0beffa32ccc52f1d5dcfd531d5e6c214d0 /libavcodec/h261enc.c | |
parent | e7af52a68dde9144b273a9598b60bf0f56e1323b (diff) |
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.
Diffstat (limited to 'libavcodec/h261enc.c')
-rw-r--r-- | libavcodec/h261enc.c | 7 |
1 files changed, 6 insertions, 1 deletions
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", |