Commit 336a1902 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/ffv1enc: Check high bpp RGB against coder type too

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 8b73a3f6
......@@ -771,6 +771,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) {
av_log(avctx, AV_LOG_ERROR, "bits_per_raw_sample of more than 8 needs -coder 1 currently\n");
return AVERROR(ENOSYS);
}
break;
default:
av_log(avctx, AV_LOG_ERROR, "format not supported\n");
......
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