Commit 91301530 authored by bcoudurier's avatar bcoudurier

avoid infinite loop if pixel format conversion does not exist

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@11259 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 837961dc
......@@ -2555,6 +2555,8 @@ int img_convert(AVPicture *dst, int dst_pix_fmt,
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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment