]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/ffv1enc.c
Merge commit '3e1b5cbc9ab0a61c9bec08a1df1404b9da6ed7ea'
[ffmpeg] / libavcodec / ffv1enc.c
index c3bf759a854db0680c1713f6ee802fc0c42b584f..942bc3772c3853788a547b1db737be6ebad374f3 100644 (file)
@@ -780,6 +780,10 @@ static av_cold int encode_init(AVCodecContext *avctx)
         s->colorspace = 1;
         s->chroma_planes = 1;
         s->version = FFMAX(s->version, 1);
+        if (!s->ac && avctx->coder_type == -1) {
+            av_log(avctx, AV_LOG_INFO, "bits_per_raw_sample > 8, forcing coder 1\n");
+            s->ac = 2;
+        }
         if (!s->ac) {
             av_log(avctx, AV_LOG_ERROR, "bits_per_raw_sample of more than 8 needs -coder 1 currently\n");
             return AVERROR(ENOSYS);