X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fcodec%2Fffmpeg%2Fencoder.c;h=5f08f6e4a9ef7ff3e382b4967f024c18b8c6cdfe;hb=6014f533a8bf88e7d8b709e94e58bb17b350a521;hp=cb7d235bbd001cb2b43c95a117059877f3ba3763;hpb=e33a897b28753313f08091eefd4b1062122387d7;p=vlc diff --git a/modules/codec/ffmpeg/encoder.c b/modules/codec/ffmpeg/encoder.c index cb7d235bbd..5f08f6e4a9 100644 --- a/modules/codec/ffmpeg/encoder.c +++ b/modules/codec/ffmpeg/encoder.c @@ -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