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/rv20enc.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/rv20enc.c')
-rw-r--r-- | libavcodec/rv20enc.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libavcodec/rv20enc.c b/libavcodec/rv20enc.c index 61e8a9d4c9..20090b14ef 100644 --- a/libavcodec/rv20enc.c +++ b/libavcodec/rv20enc.c @@ -60,7 +60,12 @@ void ff_rv20_encode_picture_header(MpegEncContext *s, int picture_number){ } } -FF_MPV_GENERIC_CLASS(rv20) +static const AVClass rv20_class = { + .class_name = "rv20 encoder", + .item_name = av_default_item_name, + .option = ff_mpv_generic_options, + .version = LIBAVUTIL_VERSION_INT, +}; AVCodec ff_rv20_encoder = { .name = "rv20", |