[FFmpeg-cvslog] avcodec/wmv2enc: add priv_class

Michael Niedermayer git at videolan.org
Sat Oct 18 20:12:49 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Oct 18 20:06:29 2014 +0200| [f4445c7be45cdd84e9db887a5cfae55e9ff5868d] | committer: Michael Niedermayer

avcodec/wmv2enc: add priv_class

Fixes ratecontrol code

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f4445c7be45cdd84e9db887a5cfae55e9ff5868d
---

 libavcodec/wmv2enc.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavcodec/wmv2enc.c b/libavcodec/wmv2enc.c
index a05a224..62e99c0 100644
--- a/libavcodec/wmv2enc.c
+++ b/libavcodec/wmv2enc.c
@@ -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,
 };



More information about the ffmpeg-cvslog mailing list