[FFmpeg-devel] [PATCH] avcodec/librav1e: Require a bitrate to be set when using 2-pass mode
Derek Buitenhuis
derek.buitenhuis at gmail.com
Sun May 3 19:06:52 EEST 2020
On 02/05/2020 15:46, James Almer wrote:
>> + if ((avctx->flags & AV_CODEC_FLAG_PASS1 || avctx->flags & AV_CODEC_FLAG_PASS2) && !avctx->bit_rate) {
>
> Maybe avctx->flags & (AV_CODEC_FLAG_PASS1 | AV_CODEC_FLAG_PASS2) instead.
I thought about it, but I think the way I already have it is a little clearer,
and so prefer it.
>> if (avctx->flags & AV_CODEC_FLAG_PASS2) {
>> if (!avctx->stats_in) {
>> av_log(avctx, AV_LOG_ERROR, "No stats file provided for second pass.\n");
>>
>
> LGTM either way.
Pushed, thanks.
- Derek
More information about the ffmpeg-devel
mailing list