Commit e33a897b authored by Christophe Massiot's avatar Christophe Massiot

* modules/codec/ffmpeg/encoder.c: If qmin == qmax, set CODEC_FLAG_QSCALE.

parent 3c01122e
...@@ -419,6 +419,9 @@ int E_(OpenEncoder)( vlc_object_t *p_this ) ...@@ -419,6 +419,9 @@ int E_(OpenEncoder)( vlc_object_t *p_this )
if ( p_sys->b_trellis ) if ( p_sys->b_trellis )
p_context->flags |= CODEC_FLAG_TRELLIS_QUANT; p_context->flags |= CODEC_FLAG_TRELLIS_QUANT;
if ( p_sys->i_qmin == p_sys->i_qmax )
p_context->flags |= CODEC_FLAG_QSCALE;
#if LIBAVCODEC_BUILD >= 4702 #if LIBAVCODEC_BUILD >= 4702
if ( p_enc->i_threads >= 1 ) if ( p_enc->i_threads >= 1 )
p_context->thread_count = p_enc->i_threads; p_context->thread_count = p_enc->i_threads;
......
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