[FFmpeg-cvslog] r25922 - trunk/libavcodec/imgconvert.c
stefano
subversion
Wed Dec 8 11:24:10 CET 2010
Author: stefano
Date: Wed Dec 8 11:24:09 2010
New Revision: 25922
Log:
Make avpicture_alloc() return meaningful values.
Modified:
trunk/libavcodec/imgconvert.c
Modified: trunk/libavcodec/imgconvert.c
==============================================================================
--- trunk/libavcodec/imgconvert.c Wed Dec 8 11:24:07 2010 (r25921)
+++ trunk/libavcodec/imgconvert.c Wed Dec 8 11:24:09 2010 (r25922)
@@ -813,9 +813,11 @@ void ff_shrink88(uint8_t *dst, int dst_w
int avpicture_alloc(AVPicture *picture,
enum PixelFormat pix_fmt, int width, int height)
{
- if (av_image_alloc(picture->data, picture->linesize, width, height, pix_fmt, 0) < 0) {
+ int ret;
+
+ if ((ret = av_image_alloc(picture->data, picture->linesize, width, height, pix_fmt, 0)) < 0) {
memset(picture, 0, sizeof(AVPicture));
- return -1;
+ return ret;
}
return 0;
More information about the ffmpeg-cvslog
mailing list