# HG changeset patch # User michael # Date 1269292351 0 # Node ID 86e4be64519ea2f5daf0e64d2106893250bce260 # Parent a3a0b6af702ef617f641da48c0749b5f59b2028c 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. diff -r a3a0b6af702e -r 86e4be64519e ffv1.c --- a/ffv1.c Mon Mar 22 15:04:11 2010 +0000 +++ b/ffv1.c Mon Mar 22 21:12:31 2010 +0000 @@ -673,6 +673,10 @@ 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: