Commit 7271a7fa authored by Gildas Bazin's avatar Gildas Bazin

* modules/codec/ffmpeg/encoder.c: don't enable CODEC_FLAG_QSCALE when not requested.

parent 36630294
......@@ -419,7 +419,7 @@ 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 )
if ( p_sys->i_qmin > 0 && p_sys->i_qmin == p_sys->i_qmax )
p_context->flags |= CODEC_FLAG_QSCALE;
#if LIBAVCODEC_BUILD >= 4702
......
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