Mercurial > libavcodec.hg
changeset 597:d5d0c11ea4cf libavcodec
fixing level overflow check for qp=1
author | michaelni |
---|---|
date | Mon, 05 Aug 2002 19:05:02 +0000 |
parents | 01da62a51ce8 |
children | 0c950f816d61 |
files | h263.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/h263.c Sun Aug 04 19:28:27 2002 +0000 +++ b/h263.c Mon Aug 05 19:05:02 2002 +0000 @@ -3042,8 +3042,8 @@ SKIP_COUNTER(re, &s->gb, 1+12+1); - if(level>512 || level<-512){ //FIXME check that QP=1 is ok with this too - fprintf(stderr, "|level| overflow in 3. esc\n"); + if(level*s->qscale>1024 || level*s->qscale<-1024){ + fprintf(stderr, "|level| overflow in 3. esc, qp=%d\n", s->qscale); return DECODING_AC_LOST; } #if 1