From: ddennedy Date: Thu, 29 Jan 2009 05:01:28 +0000 (+0000) Subject: filter_swscale.c: throw assert if creation of swscale context fails. X-Git-Url: http://research.m1stereo.tv/gitweb?a=commitdiff_plain;h=a568c18d46fd7239423e4ad6fca4edc032ce9dce;p=melted filter_swscale.c: throw assert if creation of swscale context fails. git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@1330 d19143bc-622f-0410-bfdd-b5b2a6649095 --- diff --git a/src/modules/avformat/filter_swscale.c b/src/modules/avformat/filter_swscale.c index 1a31a87..bcb68dd 100644 --- a/src/modules/avformat/filter_swscale.c +++ b/src/modules/avformat/filter_swscale.c @@ -31,6 +31,7 @@ #include #include #include +#include static inline int is_big_endian( ) { @@ -125,6 +126,7 @@ static int filter_scale( mlt_frame this, uint8_t **image, mlt_image_format iform // Create the context and output image struct SwsContext *context = sws_getContext( iwidth, iheight, iformat, owidth, oheight, oformat, interp, NULL, NULL, NULL); + assert(swscale); // Perform the scaling sws_scale( context, input.data, input.linesize, 0, iheight, output.data, output.linesize);