diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-11-03 22:11:11 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-11-03 22:18:47 +0100 |
commit | 336a1902d6be08c2f25fe0f15722f7c65f060866 (patch) | |
tree | 52cfbe8b32163eb827f0c936008cbf4a080729f7 | |
parent | 8b73a3f6f6598cb9249034fa020ddead3c943e2f (diff) | |
download | ffmpeg-336a1902d6be08c2f25fe0f15722f7c65f060866.tar.gz |
avcodec/ffv1enc: Check high bpp RGB against coder type too
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/ffv1enc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/ffv1enc.c b/libavcodec/ffv1enc.c index 6f5ba5b844..246a0b551a 100644 --- a/libavcodec/ffv1enc.c +++ b/libavcodec/ffv1enc.c @@ -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"); |