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:
8dfc6d1
)
svq3: Check negative mb_type to fix potential crash.
author
Baptiste Coudurier
<baptiste.coudurier@gmail.com>
Thu, 5 May 2011 01:45:36 +0000
(18:45 -0700)
committer
Diego Biurrun
<diego@biurrun.de>
Fri, 3 Jun 2011 11:55:55 +0000
(13:55 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Diego Biurrun <diego@biurrun.de>
libavcodec/svq3.c
patch
|
blob
|
history
diff --git
a/libavcodec/svq3.c
b/libavcodec/svq3.c
index b55fa52fdba4c06634dbb529b7607b2e3d9b7b32..7cde5e555234fbe68e31e1e47e75d4b816a8b781 100644
(file)
--- a/
libavcodec/svq3.c
+++ b/
libavcodec/svq3.c
@@
-1037,7
+1037,7
@@
static int svq3_decode_frame(AVCodecContext *avctx,
} else if (s->pict_type == AV_PICTURE_TYPE_B && mb_type >= 4) {
mb_type += 4;
}
- if (mb_type > 33 || svq3_decode_mb(svq3, mb_type)) {
+ if (
(unsigned)
mb_type > 33 || svq3_decode_mb(svq3, mb_type)) {
av_log(h->s.avctx, AV_LOG_ERROR, "error while decoding MB %d %d\n", s->mb_x, s->mb_y);
return -1;
}