projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
159d10f
)
fixing level overflow check for qp=1
author
Michael Niedermayer
<michaelni@gmx.at>
Mon, 5 Aug 2002 19:05:02 +0000
(19:05 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Mon, 5 Aug 2002 19:05:02 +0000
(19:05 +0000)
Originally committed as revision 842 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/h263.c
patch
|
blob
|
history
diff --git
a/libavcodec/h263.c
b/libavcodec/h263.c
index
666105e
..
40b0236
100644
(file)
--- a/
libavcodec/h263.c
+++ b/
libavcodec/h263.c
@@
-3042,8
+3042,8
@@
static inline int mpeg4_decode_block(MpegEncContext * s, DCTELEM * block,
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