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:
79a5b35
)
fix segfault with darkkben.free.fr/corrupted_h264.mp4
author
Michael Niedermayer
<michaelni@gmx.at>
Tue, 23 Jan 2007 19:32:26 +0000
(19:32 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Tue, 23 Jan 2007 19:32:26 +0000
(19:32 +0000)
Originally committed as revision 7671 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/h264.c
patch
|
blob
|
history
diff --git
a/libavcodec/h264.c
b/libavcodec/h264.c
index
2d75aaa
..
d696676
100644
(file)
--- a/
libavcodec/h264.c
+++ b/
libavcodec/h264.c
@@
-4889,8
+4889,8
@@
static int decode_residual(H264Context *h, GetBitContext *gb, DCTELEM *block, in
if(total_coeff==0)
return 0;
- if(total_coeff
<0
) {
- av_log(h->s.avctx, AV_LOG_ERROR, "corrupted macroblock %d %d (total_coeff
<0)\n", s->mb_x, s->mb_y
);
+ if(total_coeff
> (unsigned)max_coeff
) {
+ av_log(h->s.avctx, AV_LOG_ERROR, "corrupted macroblock %d %d (total_coeff
=%d)\n", s->mb_x, s->mb_y, total_coeff
);
return -1;
}