ffmpeg: stop using deprecated codec flags

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer 2017-03-25 21:34:52 -03:00
parent bd717340a2
commit 2f05d18ee2

View File

@ -1541,7 +1541,7 @@ static void print_final_stats(int64_t total_size)
}
extra_size += ost->enc_ctx->extradata_size;
data_size += ost->data_size;
if ( (ost->enc_ctx->flags & (AV_CODEC_FLAG_PASS1 | CODEC_FLAG_PASS2))
if ( (ost->enc_ctx->flags & (AV_CODEC_FLAG_PASS1 | AV_CODEC_FLAG_PASS2))
!= AV_CODEC_FLAG_PASS1)
pass1_used = 0;
}