Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2009-04-22 05:54:05 +0400
committerMichael Niedermayer <michaelni@gmx.at>2009-04-22 05:54:05 +0400
commit445f0a8b666a34e6402f6ae96c6804c8bc024baa (patch)
tree3bd6990a2957220105e96e26e672dc0361026a42 /libavcodec/utils.c
parent97f92143423757e293079f353f0dd23f70e6ff1d (diff)
Update safety check as the maximum pixel size is no longer 4.
New max size is 16bit * 4 samples (RGBA). Originally committed as revision 18655 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r--libavcodec/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index a37ace9cc5..fe8bed7b2b 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -200,7 +200,7 @@ void avcodec_align_dimensions(AVCodecContext *s, int *width, int *height){
}
int avcodec_check_dimensions(void *av_log_ctx, unsigned int w, unsigned int h){
- if((int)w>0 && (int)h>0 && (w+128)*(uint64_t)(h+128) < INT_MAX/4)
+ if((int)w>0 && (int)h>0 && (w+128)*(uint64_t)(h+128) < INT_MAX/8)
return 0;
av_log(av_log_ctx, AV_LOG_ERROR, "picture size invalid (%ux%u)\n", w, h);