From: Christophe Massiot Date: Fri, 20 May 2005 18:05:42 +0000 (+0000) Subject: * modules/codec/ffmpeg/encoder.c: If qmin == qmax, set CODEC_FLAG_QSCALE. X-Git-Tag: 0.8.2~157 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=e33a897b28753313f08091eefd4b1062122387d7;p=vlc * modules/codec/ffmpeg/encoder.c: If qmin == qmax, set CODEC_FLAG_QSCALE. --- diff --git a/modules/codec/ffmpeg/encoder.c b/modules/codec/ffmpeg/encoder.c index 59c64a70f2..cb7d235bbd 100644 --- a/modules/codec/ffmpeg/encoder.c +++ b/modules/codec/ffmpeg/encoder.c @@ -419,6 +419,9 @@ int E_(OpenEncoder)( vlc_object_t *p_this ) if ( p_sys->b_trellis ) 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 ( p_enc->i_threads >= 1 ) p_context->thread_count = p_enc->i_threads;