[Ffmpeg-devel] [PATCH] fix ffmpeg is killed for some img convert
Limin Wang
lance.lmwang
Fri Apr 6 13:40:25 CEST 2007
Hi,
When I convert video from yuv420p to bgr565 etc, ffmpeg will be killed
by system without error hint(guess it's caused by dead loop). Attached
patch will try to fix it, please review it.
Thanks,
Limin
-------------- next part --------------
Index: libavcodec/imgconvert.c
===================================================================
--- libavcodec/imgconvert.c (revision 8629)
+++ libavcodec/imgconvert.c (working copy)
@@ -2356,7 +2356,8 @@
/* specific conversion routine */
ce->convert(dst, src, dst_width, dst_height);
return 0;
- }
+ } else
+ return -1;
/* gray to YUV */
if (is_yuv_planar(dst_pix) &&
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 481 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070406/f5e553ce/attachment.pgp>
More information about the ffmpeg-devel
mailing list