mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-25 16:52:31 +00:00
avcodec/wmv2enc: add priv_class
Fixes ratecontrol code Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
bf301258b4
commit
f4445c7be4
@ -222,6 +222,8 @@ void ff_wmv2_encode_mb(MpegEncContext *s, int16_t block[6][64],
|
|||||||
s->p_tex_bits += get_bits_diff(s);
|
s->p_tex_bits += get_bits_diff(s);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
FF_MPV_GENERIC_CLASS(wmv2)
|
||||||
|
|
||||||
AVCodec ff_wmv2_encoder = {
|
AVCodec ff_wmv2_encoder = {
|
||||||
.name = "wmv2",
|
.name = "wmv2",
|
||||||
.long_name = NULL_IF_CONFIG_SMALL("Windows Media Video 8"),
|
.long_name = NULL_IF_CONFIG_SMALL("Windows Media Video 8"),
|
||||||
@ -233,4 +235,5 @@ AVCodec ff_wmv2_encoder = {
|
|||||||
.close = ff_mpv_encode_end,
|
.close = ff_mpv_encode_end,
|
||||||
.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_YUV420P,
|
.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_YUV420P,
|
||||||
AV_PIX_FMT_NONE },
|
AV_PIX_FMT_NONE },
|
||||||
|
.priv_class = &wmv2_class,
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user