]> git.sesse.net Git - vlc/commitdiff
* modules/codec/ffmpeg/encoder.c: If qmin == qmax, set CODEC_FLAG_QSCALE.
authorChristophe Massiot <massiot@videolan.org>
Fri, 20 May 2005 18:05:42 +0000 (18:05 +0000)
committerChristophe Massiot <massiot@videolan.org>
Fri, 20 May 2005 18:05:42 +0000 (18:05 +0000)
modules/codec/ffmpeg/encoder.c

index 59c64a70f2160d37ee4d5435c58cee1755bb2533..cb7d235bbd001cb2b43c95a117059877f3ba3763 100644 (file)
@@ -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;