]> git.sesse.net Git - mlt/commitdiff
fix incorrect pointer comparisons in legacy code
authorDan Dennedy <dan@dennedy.org>
Thu, 13 Sep 2012 05:04:48 +0000 (22:04 -0700)
committerDan Dennedy <dan@dennedy.org>
Thu, 13 Sep 2012 05:04:48 +0000 (22:04 -0700)
Reported by Steinar Gunderson

src/modules/avformat/producer_avformat.c

index 0d7c5c1b828381a2ba89302d288880536f94cb00..a59291e3159ddb7ab626f19737b8ee0986c7f9e0 100644 (file)
@@ -1344,7 +1344,7 @@ static void convert_image( AVFrame *frame, uint8_t *buffer, int pix_fmt,
                avpicture_fill( &output, buffer, PIX_FMT_RGB24, width, height );
                img_convert( &output, PIX_FMT_RGB24, (AVPicture *)frame, pix_fmt, width, height );
        }
-       else if ( format == mlt_image_rgb24a || format == mlt_image_opengl )
+       else if ( *format == mlt_image_rgb24a || *format == mlt_image_opengl )
        {
                AVPicture output;
                avpicture_fill( &output, buffer, PIX_FMT_RGB32, width, height );