aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/ffv1enc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-11-03 22:11:11 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-11-17 19:11:07 +0100
commitf16751175324ea31e25fa30851ed915548516beb (patch)
tree38692b071ff6b624ee21fe2d778eff385f634fb4 /libavcodec/ffv1enc.c
parent8c00647982590115b9dedb9cc42bec70c0531782 (diff)
downloadandroid_external_ffmpeg-f16751175324ea31e25fa30851ed915548516beb.tar.gz
android_external_ffmpeg-f16751175324ea31e25fa30851ed915548516beb.tar.bz2
android_external_ffmpeg-f16751175324ea31e25fa30851ed915548516beb.zip
avcodec/ffv1enc: Check high bpp RGB against coder type too
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/ffv1enc.c')
-rw-r--r--libavcodec/ffv1enc.c4
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");