#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <assert.h>
static inline int is_big_endian( )
{
// Create the context and output image
struct SwsContext *context = sws_getContext( iwidth, iheight, iformat, owidth, oheight, oformat, interp, NULL, NULL, NULL);
+ assert(context);
// Perform the scaling
sws_scale( context, input.data, input.linesize, 0, iheight, output.data, output.linesize);