aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2009-04-09 15:33:02 +0000
committerMichael Niedermayer <michaelni@gmx.at>2009-04-09 15:33:02 +0000
commita794356602af59029c765555361166128f74ae9e (patch)
tree0307bebf929a820faa0571a2c2a4c4237afdcb7f /libavcodec
parentf0812be883221eded78011893e6ad50af2f6b129 (diff)
downloadffmpeg-a794356602af59029c765555361166128f74ae9e.tar.gz
Fix spatial_decomposition_type validity check.
Fixes infinite loop (did no investigate why exactly it got stuck). Originally committed as revision 18389 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/snow.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/snow.c b/libavcodec/snow.c
index 921010eaf0..93bca04dc9 100644
--- a/libavcodec/snow.c
+++ b/libavcodec/snow.c
@@ -3620,7 +3620,7 @@ static int decode_header(SnowContext *s){
}
s->spatial_decomposition_type+= get_symbol(&s->c, s->header_state, 1);
- if(s->spatial_decomposition_type > 1){
+ if(s->spatial_decomposition_type > 1U){
av_log(s->avctx, AV_LOG_ERROR, "spatial_decomposition_type %d not supported", s->spatial_decomposition_type);
return -1;
}