diff options
author | Roberto Togni <r_togni@tiscali.it> | 2005-01-15 00:07:38 +0000 |
---|---|---|
committer | Roberto Togni <r_togni@tiscali.it> | 2005-01-15 00:07:38 +0000 |
commit | 3048af835051b4245e51e63204fce72e7c71c8a4 (patch) | |
tree | 1ebbeff2e5ae8e2e61b470e037826b7913c46fef /libavcodec/lcl.c | |
parent | a9c3ff5b9edbefd4914333fd6c99cc8aded1f269 (diff) | |
download | ffmpeg-streaming-3048af835051b4245e51e63204fce72e7c71c8a4.zip ffmpeg-streaming-3048af835051b4245e51e63204fce72e7c71c8a4.tar.gz |
Use avcodec_check_dimensions instead of custom hack
Originally committed as revision 3836 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/lcl.c')
-rw-r--r-- | libavcodec/lcl.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/lcl.c b/libavcodec/lcl.c index cd2a3a8..bf04154 100644 --- a/libavcodec/lcl.c +++ b/libavcodec/lcl.c @@ -640,9 +640,7 @@ static int decode_init(AVCodecContext *avctx) return 1; } - // FIXME: find a better way to prevent integer overflow - if (((unsigned int)avctx->width > 32000) || ((unsigned int)avctx->height > 32000)) { - av_log(avctx, AV_LOG_ERROR, "Bad image size (w = %d, h = %d).\n", avctx->width, avctx->height); + if (avcodec_check_dimensions(avctx, avctx->width, avctx->height) < 0) { return 1; } |