This allows converting all producers to meta.media.width and
meta.media.height while not attempting to auto-profile the image
producers, which can potentially hold extremely large images and do not
contain any inherent frame rate. This also protects from potential
divide by zero errors.
mlt_frame_close( fr );
mlt_service_get_frame( MLT_PRODUCER_SERVICE(melt), &fr, 0 );
p = MLT_FRAME_PROPERTIES( fr );
- if ( mlt_properties_get_int( p, "meta.media.width" ) )
+ if ( mlt_properties_get_int( p, "meta.media.frame_rate_den" ) && mlt_properties_get_int( p, "meta.media.sample_aspect_den" ) )
{
profile->width = mlt_properties_get_int( p, "meta.media.width" );
profile->height = mlt_properties_get_int( p, "meta.media.height" );