[vlc-commits] avcodec: set libmpeg2mmx idct in use if we encode to mp2v

Ilkka Ollakka git at videolan.org
Sun Sep 4 19:07:48 CEST 2011


vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Sun Sep  4 20:06:20 2011 +0300| [2c055dc81ce1830fb988806a6026aca3650e9ba1] | committer: Ilkka Ollakka

avcodec: set libmpeg2mmx idct in use if we encode to mp2v

It could be the reason people noticed difference between libmpeg2/avcodec encodes.
As mentioned in VDD'11.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2c055dc81ce1830fb988806a6026aca3650e9ba1
---

 modules/codec/avcodec/encoder.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/modules/codec/avcodec/encoder.c b/modules/codec/avcodec/encoder.c
index 3cf36dd..db1e58d 100644
--- a/modules/codec/avcodec/encoder.c
+++ b/modules/codec/avcodec/encoder.c
@@ -429,6 +429,9 @@ int OpenEncoder( vlc_object_t *p_this )
                p_enc->fmt_out.i_codec == VLC_CODEC_MP1V ) )
             p_context->flags |= CODEC_FLAG_LOW_DELAY;
 
+        if( p_enc->fmt_out.i_codec == VLC_CODEC_MP2V )
+            p_context->idct_algo = FF_IDCT_LIBMPEG2MMX;
+
         av_reduce( &p_context->sample_aspect_ratio.num,
                    &p_context->sample_aspect_ratio.den,
                    p_enc->fmt_in.video.i_sar_num,



More information about the vlc-commits mailing list