]> git.sesse.net Git - mlt/commitdiff
Fix crash on invalid and audio only clips.
authorDan Dennedy <dan@dennedy.org>
Mon, 20 Sep 2010 05:44:15 +0000 (22:44 -0700)
committerDan Dennedy <dan@dennedy.org>
Thu, 7 Oct 2010 05:19:14 +0000 (22:19 -0700)
src/melt/melt.c

index 629392dbc7f93f0dc3357cd4b80b28f2c6754d23..73c60ac483e6d20feb0a177f0eb5c838844de460 100644 (file)
@@ -280,7 +280,8 @@ static void guess_profile( mlt_producer melt, mlt_profile profile )
        uint8_t *buffer;
        mlt_image_format fmt = mlt_image_yuv422;
        mlt_properties p;
-       int w, h;
+       int w = profile->width;
+       int h = profile->height;
 
        if ( ! mlt_service_get_frame( MLT_PRODUCER_SERVICE(melt), &fr, 0 ) && fr )
        {