Commit 2c055dc8 authored by Ilkka Ollakka's avatar 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.
parent 57882cbb
...@@ -429,6 +429,9 @@ int OpenEncoder( vlc_object_t *p_this ) ...@@ -429,6 +429,9 @@ int OpenEncoder( vlc_object_t *p_this )
p_enc->fmt_out.i_codec == VLC_CODEC_MP1V ) ) p_enc->fmt_out.i_codec == VLC_CODEC_MP1V ) )
p_context->flags |= CODEC_FLAG_LOW_DELAY; 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, av_reduce( &p_context->sample_aspect_ratio.num,
&p_context->sample_aspect_ratio.den, &p_context->sample_aspect_ratio.den,
p_enc->fmt_in.video.i_sar_num, p_enc->fmt_in.video.i_sar_num,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment