mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-27 13:10:37 +00:00
avcodec/mjpegenc: add priv_class to encoders
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
b48c95b6c9
commit
ae6ba2db8f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user