Commit ddbf560f authored by michael's avatar michael

Disallow VLC coding with more than 8 bits as there are several bugs

in that code that could lead to broken files.
AC coding is unaffected.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22638 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent fbe1d49c
......@@ -673,6 +673,10 @@ static av_cold int encode_init(AVCodecContext *avctx)
av_log(avctx, AV_LOG_ERROR, "bits_per_raw_sample invalid\n");
return -1;
}
if(!s->ac){
av_log(avctx, AV_LOG_ERROR, "bits_per_raw_sample of more than 8 needs -coder 1 currently\n");
return -1;
}
s->version= 1;
case PIX_FMT_YUV444P:
case PIX_FMT_YUV422P:
......
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