Browse Source

avcodec/ffv1enc: support forcing experimental 1.4 version

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.2-rc1
Michael Niedermayer 11 years ago
parent
commit
b07da13ac0
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      libavcodec/ffv1enc.c

+ 3
- 1
libavcodec/ffv1enc.c View File

@@ -674,9 +674,11 @@ static av_cold int encode_init(AVCodecContext *avctx)
if ((avctx->flags & (CODEC_FLAG_PASS1|CODEC_FLAG_PASS2)) || avctx->slices>1) if ((avctx->flags & (CODEC_FLAG_PASS1|CODEC_FLAG_PASS2)) || avctx->slices>1)
s->version = FFMAX(s->version, 2); 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; s->version = 3;
} }
if (avctx->level >= 0 && avctx->level <= 4)
s->version = FFMAX(s->version, avctx->level);


if (s->ec < 0) { if (s->ec < 0) {
s->ec = (s->version >= 3); s->ec = (s->version >= 3);


Loading…
Cancel
Save