[FFmpeg-cvslog] r11259 - trunk/libavcodec/imgconvert.c
bcoudurier
subversion
Tue Dec 18 14:49:58 CET 2007
Author: bcoudurier
Date: Tue Dec 18 14:49:58 2007
New Revision: 11259
Log:
avoid infinite loop if pixel format conversion does not exist
Modified:
trunk/libavcodec/imgconvert.c
Modified: trunk/libavcodec/imgconvert.c
==============================================================================
--- trunk/libavcodec/imgconvert.c (original)
+++ trunk/libavcodec/imgconvert.c Tue Dec 18 14:49:58 2007
@@ -2555,6 +2555,8 @@ int img_convert(AVPicture *dst, int dst_
else
int_pix_fmt = PIX_FMT_RGB24;
}
+ if (src_pix_fmt == int_pix_fmt)
+ return -1;
if (avpicture_alloc(tmp, int_pix_fmt, dst_width, dst_height) < 0)
return -1;
ret = -1;
More information about the ffmpeg-cvslog
mailing list