Mercurial > libavcodec.hg
changeset 11530:86e4be64519e libavcodec
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.
author | michael |
---|---|
date | Mon, 22 Mar 2010 21:12:31 +0000 |
parents | a3a0b6af702e |
children | 31033caa5344 |
files | ffv1.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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: