git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b73a3f
)
avcodec/ffv1enc: Check high bpp RGB against coder type too
author
Michael Niedermayer
<michaelni@gmx.at>
Sun, 3 Nov 2013 21:11:11 +0000
(22:11 +0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sun, 3 Nov 2013 21:18:47 +0000
(22:18 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/ffv1enc.c
patch
|
blob
|
history
diff --git
a/libavcodec/ffv1enc.c
b/libavcodec/ffv1enc.c
index
6f5ba5b
..
246a0b5
100644
(file)
--- 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");