[FFmpeg-devel] [PATCH] Print invalid picture dimensions as signed values.
Benoit Fouet
benoit.fouet
Mon May 10 17:49:14 CEST 2010
as in $subj
Index: libavcodec/utils.c
===================================================================
--- libavcodec/utils.c (revision 23079)
+++ libavcodec/utils.c (working copy)
@@ -223,7 +223,7 @@ int avcodec_check_dimensions(void *av_lo
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);
+ av_log(av_log_ctx, AV_LOG_ERROR, "picture size invalid (%dx%d)\n", (int)w, (int)h);
return AVERROR(EINVAL);
}
More information about the ffmpeg-devel
mailing list