[FFmpeg-cvslog] r22962 - trunk/libavcodec/utils.c
stefano
subversion
Sun Apr 25 17:05:17 CEST 2010
Author: stefano
Date: Sun Apr 25 17:05:16 2010
New Revision: 22962
Log:
Make avcodec_check_dimensions() return AVERROR(EINVAL) rather than -1
in case of invalid picture size.
Modified:
trunk/libavcodec/utils.c
Modified: trunk/libavcodec/utils.c
==============================================================================
--- trunk/libavcodec/utils.c Sun Apr 25 16:27:42 2010 (r22961)
+++ trunk/libavcodec/utils.c Sun Apr 25 17:05:16 2010 (r22962)
@@ -224,7 +224,7 @@ int avcodec_check_dimensions(void *av_lo
return 0;
av_log(av_log_ctx, AV_LOG_ERROR, "picture size invalid (%ux%u)\n", w, h);
- return -1;
+ return AVERROR(EINVAL);
}
int avcodec_default_get_buffer(AVCodecContext *s, AVFrame *pic){
More information about the ffmpeg-cvslog
mailing list