mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2025-02-12 07:20:47 +00:00
Merge commit '0ef256d51518f0e483c38b9ee3b993cf0709d00e'
* commit '0ef256d51518f0e483c38b9ee3b993cf0709d00e': libx264: Correctly manage constant rate factor params Conflicts: libavcodec/libx264.c See: 3a1c8951bc886e8af30e09dc0e20491f6f5c3937 Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
49f1b869b6
@ -207,8 +207,8 @@ static int X264_frame(AVCodecContext *ctx, AVPacket *pkt, const AVFrame *frame,
|
||||
x264_encoder_reconfig(x4->enc, &x4->params);
|
||||
}
|
||||
|
||||
if (x4->params.rc.i_rc_method == X264_RC_CRF &&
|
||||
x4->crf >= 0 &&
|
||||
if (x4->crf >= 0 &&
|
||||
x4->params.rc.i_rc_method == X264_RC_CRF &&
|
||||
x4->params.rc.f_rf_constant != x4->crf) {
|
||||
x4->params.rc.f_rf_constant = x4->crf;
|
||||
x264_encoder_reconfig(x4->enc, &x4->params);
|
||||
|
Loading…
x
Reference in New Issue
Block a user