X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fframework%2Fmlt_frame.c;h=3ad896d2f3ce309085710710d4dfb466e2474bde;hb=45e92efd45d245cc9fb778db5a1ea340d5319336;hp=c9d7956d4784e89627fbbb99f328c11846b9ae01;hpb=747d8d834d5f37e455fc3ef9ebcea8731ccca803;p=mlt diff --git a/src/framework/mlt_frame.c b/src/framework/mlt_frame.c index c9d7956d..3ad896d2 100644 --- a/src/framework/mlt_frame.c +++ b/src/framework/mlt_frame.c @@ -1043,8 +1043,6 @@ mlt_frame mlt_frame_clone( mlt_frame self, int is_deep ) mlt_frame new_frame = mlt_frame_init( NULL ); mlt_properties properties = MLT_FRAME_PROPERTIES( self ); mlt_properties new_props = MLT_FRAME_PROPERTIES( new_frame ); - int width = mlt_properties_get_int( properties, "width" ); - int height = mlt_properties_get_int( properties, "height" ); void *data, *copy; int size; @@ -1056,9 +1054,6 @@ mlt_frame mlt_frame_clone( mlt_frame self, int is_deep ) mlt_properties_set_data( new_props, "movit.convert", mlt_properties_get_data( properties, "movit.convert", NULL), 0, NULL, NULL ); - mlt_properties_set_int( new_props, "meta.media.width", width ); - mlt_properties_set_int( new_props, "meta.media.height", height ); - if ( is_deep ) { data = mlt_properties_get_data( properties, "audio", &size ); @@ -1075,6 +1070,9 @@ mlt_frame mlt_frame_clone( mlt_frame self, int is_deep ) data = mlt_properties_get_data( properties, "image", &size ); if ( data ) { + int width = mlt_properties_get_int( properties, "width" ); + int height = mlt_properties_get_int( properties, "height" ); + if ( ! size ) size = mlt_image_format_size( mlt_properties_get_int( properties, "format" ), width, height, NULL );