Mercurial > libavcodec.hg
comparison ffv1.c @ 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 | 8a4984c5cacc |
comparison
equal
deleted
inserted
replaced
11529:a3a0b6af702e | 11530:86e4be64519e |
---|---|
671 case PIX_FMT_YUV420P16: | 671 case PIX_FMT_YUV420P16: |
672 if(avctx->bits_per_raw_sample <=8){ | 672 if(avctx->bits_per_raw_sample <=8){ |
673 av_log(avctx, AV_LOG_ERROR, "bits_per_raw_sample invalid\n"); | 673 av_log(avctx, AV_LOG_ERROR, "bits_per_raw_sample invalid\n"); |
674 return -1; | 674 return -1; |
675 } | 675 } |
676 if(!s->ac){ | |
677 av_log(avctx, AV_LOG_ERROR, "bits_per_raw_sample of more than 8 needs -coder 1 currently\n"); | |
678 return -1; | |
679 } | |
676 s->version= 1; | 680 s->version= 1; |
677 case PIX_FMT_YUV444P: | 681 case PIX_FMT_YUV444P: |
678 case PIX_FMT_YUV422P: | 682 case PIX_FMT_YUV422P: |
679 case PIX_FMT_YUV420P: | 683 case PIX_FMT_YUV420P: |
680 case PIX_FMT_YUV411P: | 684 case PIX_FMT_YUV411P: |