avcodec/wmv2enc: add priv_class
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 18 Oct 2014 18:06:29 +0000 (20:06 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 18 Oct 2014 18:06:29 +0000 (20:06 +0200)
Fixes ratecontrol code

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/wmv2enc.c

index a05a224f6d2e0cfe76ad708459ce02bf888ba8aa..62e99c0fc85f736a3f944912059c9021ab2298be 100644 (file)
@@ -222,6 +222,8 @@ void ff_wmv2_encode_mb(MpegEncContext *s, int16_t block[6][64],
         s->p_tex_bits += get_bits_diff(s);
 }
 
+FF_MPV_GENERIC_CLASS(wmv2)
+
 AVCodec ff_wmv2_encoder = {
     .name           = "wmv2",
     .long_name      = NULL_IF_CONFIG_SMALL("Windows Media Video 8"),
@@ -233,4 +235,5 @@ AVCodec ff_wmv2_encoder = {
     .close          = ff_mpv_encode_end,
     .pix_fmts       = (const enum AVPixelFormat[]) { AV_PIX_FMT_YUV420P,
                                                      AV_PIX_FMT_NONE },
+    .priv_class     = &wmv2_class,
 };