From 9752d6c86aa6fa871e8012fe69111aed6cba2f71 Mon Sep 17 00:00:00 2001 From: Dan Dennedy Date: Sun, 18 Apr 2010 00:36:03 -0700 Subject: [PATCH] Only use newish version of libswcale. Some early revisions of 0.7.1 would cause garbage on last column of image with non-even width. --- configure | 2 +- src/modules/avformat/filter_avcolour_space.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 46848b42..a4a69e70 100755 --- a/configure +++ b/configure @@ -1,6 +1,6 @@ #!/bin/sh -export version=0.5.2 +export version=0.5.3 export soversion=2 show_help() diff --git a/src/modules/avformat/filter_avcolour_space.c b/src/modules/avformat/filter_avcolour_space.c index 032fb4e4..b1c5eb62 100644 --- a/src/modules/avformat/filter_avcolour_space.c +++ b/src/modules/avformat/filter_avcolour_space.c @@ -163,6 +163,7 @@ static mlt_frame filter_process( mlt_filter this, mlt_frame frame ) mlt_filter filter_avcolour_space_init( void *arg ) { +#if (LIBSWSCALE_VERSION_INT >= ((0<<16)+(7<<8)+2)) // Test to see if swscale accepts the arg as resolution if ( arg ) { @@ -178,5 +179,8 @@ mlt_filter filter_avcolour_space_init( void *arg ) if ( this != NULL ) this->process = filter_process; return this; +#else + return NULL; +#endif } -- 2.39.2