Commit b07da13a authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/ffv1enc: support forcing experimental 1.4 version

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 7854d2d2
......@@ -674,9 +674,11 @@ static av_cold int encode_init(AVCodecContext *avctx)
if ((avctx->flags & (CODEC_FLAG_PASS1|CODEC_FLAG_PASS2)) || avctx->slices>1)
s->version = FFMAX(s->version, 2);
if (avctx->level == 3 || (avctx->level <= 0 && s->version == 2)) {
if (avctx->level <= 0 && s->version == 2) {
s->version = 3;
}
if (avctx->level >= 0 && avctx->level <= 4)
s->version = FFMAX(s->version, avctx->level);
if (s->ec < 0) {
s->ec = (s->version >= 3);
......
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