This could happen when the caller of mlt_frame_get_image supplied 0 for
width and height. For example, Kdenlive's GL output with the sdl_audio
consumer with real_time > 1 and paused.
// Get the image from the b frame
uint8_t *image_b = NULL;
- int width_b = *width;
- int height_b = *height;
+ int width_b = *width > 0 ? *width : mlt_properties_get_int( a_props, "normalised_width" );
+ int height_b = *height > 0 ? *height : mlt_properties_get_int( a_props, "normalised_height" );
// Vars for alphas
uint8_t *alpha_a = NULL;