[Ffmpeg-devel] Re: [PATCH] fix ffmpeg is killed for some img convert

Limin Wang lance.lmwang
Fri Apr 6 13:54:20 CEST 2007


Hi,

* Limin Wang <lance.lmwang at gmail.com> [2007-04-06 19:40:25 +0800]:

> 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

> 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) &&

Sorry, misunderstand, please ignored it. I'll investigate more.

Thanks,
Limin




More information about the ffmpeg-devel mailing list