Commit bf4bd427 authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

lavc/ffv1enc: Auto-select -coder 1 for >8bit also for yuv.

Reported-by: Christoph Gerstbauer
parent 6fa98822
...@@ -780,6 +780,10 @@ static av_cold int encode_init(AVCodecContext *avctx) ...@@ -780,6 +780,10 @@ static av_cold int encode_init(AVCodecContext *avctx)
s->colorspace = 1; s->colorspace = 1;
s->chroma_planes = 1; s->chroma_planes = 1;
s->version = FFMAX(s->version, 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) { if (!s->ac) {
av_log(avctx, AV_LOG_ERROR, "bits_per_raw_sample of more than 8 needs -coder 1 currently\n"); av_log(avctx, AV_LOG_ERROR, "bits_per_raw_sample of more than 8 needs -coder 1 currently\n");
return AVERROR(ENOSYS); return AVERROR(ENOSYS);
......
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