aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/asf.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2007-01-22 21:33:26 +0000
committerMichael Niedermayer <michaelni@gmx.at>2007-01-22 21:33:26 +0000
commit92216453dbcce0f946eaf74bec075791a3edecb5 (patch)
treefaa68f830d8c1eef3b5dcfe7eb04f5d4c8a239ef /libavformat/asf.c
parent0b93103a31b2ab29b307fb17a726b9ba59da9ea4 (diff)
downloadffmpeg-92216453dbcce0f946eaf74bec075791a3edecb5.tar.gz
better padsize check
Originally committed as revision 7656 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/asf.c')
-rw-r--r--libavformat/asf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/asf.c b/libavformat/asf.c
index c9b997d88f..052e78024a 100644
--- a/libavformat/asf.c
+++ b/libavformat/asf.c
@@ -504,7 +504,7 @@ static int asf_get_packet(AVFormatContext *s)
av_log(s, AV_LOG_ERROR, "invalid packet_length %d at:%"PRId64"\n", packet_length, url_ftell(pb));
return -1;
}
- if(padsize >= (1U<<29)){
+ if(padsize >= packet_length){
av_log(s, AV_LOG_ERROR, "invalid padsize %d at:%"PRId64"\n", padsize, url_ftell(pb));
return -1;
}