diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-10-18 21:13:20 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-10-18 21:13:20 +0400 |
commit | ae6ba2db8ff811fa1fe23c5abffcc8086dcbc052 (patch) | |
tree | 5c546a6ae3739bee4a94c1fa9538d3245265a0a6 | |
parent | b48c95b6c92ea8ae2bb5ce55a5cf190421addb28 (diff) |
avcodec/mjpegenc: add priv_class to encoders
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/mjpegenc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/mjpegenc.c b/libavcodec/mjpegenc.c index 72c56d20b3..0fb3a17fc3 100644 --- a/libavcodec/mjpegenc.c +++ b/libavcodec/mjpegenc.c @@ -215,6 +215,8 @@ static int amv_encode_picture(AVCodecContext *avctx, AVPacket *pkt, } #if CONFIG_MJPEG_ENCODER +FF_MPV_GENERIC_CLASS(mjpeg) + AVCodec ff_mjpeg_encoder = { .name = "mjpeg", .long_name = NULL_IF_CONFIG_SMALL("MJPEG (Motion JPEG)"), @@ -228,9 +230,12 @@ AVCodec ff_mjpeg_encoder = { .pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_YUVJ420P, AV_PIX_FMT_YUVJ422P, AV_PIX_FMT_YUVJ444P, AV_PIX_FMT_NONE }, + .priv_class = &mjpeg_class, }; #endif #if CONFIG_AMV_ENCODER +FF_MPV_GENERIC_CLASS(amv) + AVCodec ff_amv_encoder = { .name = "amv", .long_name = NULL_IF_CONFIG_SMALL("AMV Video"), @@ -243,5 +248,6 @@ AVCodec ff_amv_encoder = { .pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_YUVJ420P, AV_PIX_FMT_NONE }, + .priv_class = &amv_class, }; #endif |