diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-11-03 22:11:11 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-11-17 19:11:07 +0100 |
commit | f16751175324ea31e25fa30851ed915548516beb (patch) | |
tree | 38692b071ff6b624ee21fe2d778eff385f634fb4 /libavcodec | |
parent | 8c00647982590115b9dedb9cc42bec70c0531782 (diff) | |
download | ffmpeg-f16751175324ea31e25fa30851ed915548516beb.tar.gz |
avcodec/ffv1enc: Check high bpp RGB against coder type too
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-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 59d2869dc1..885e005e9e 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"); |