[Ffmpeg-devel] [PATCH] Fix for the lol-ffplay.ogm testcase

Michael Niedermayer michaelni
Wed Jan 17 11:11:12 CET 2007


Hi

On Wed, Jan 17, 2007 at 10:40:07AM +0100, Panagiotis Issaris wrote:
> Hi,
> 
> Attached are two trivial patches with different approaches to prevent
> the segfault as demonstrated by lol-ffplay.ogm.
[...]
> Index: libavcodec/imgresample.c
> ===================================================================
> --- libavcodec/imgresample.c	(revision 7559)
> +++ libavcodec/imgresample.c	(working copy)
> @@ -672,6 +672,8 @@
>  
>  void sws_freeContext(struct SwsContext *ctx)
>  {
> +    if (!ctx)
> +        return;
>      if ((ctx->resampling_ctx->iwidth != ctx->resampling_ctx->owidth) ||

looks ok

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

No great genius has ever existed without some touch of madness. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070117/f7310d0a/attachment.pgp>



More information about the ffmpeg-devel mailing list