There are 2 issues with the framebuffer producer in kdenlive module that cause crash or corrupted frames in some situations. To reproduce:
use a video that has a different size than default profile (for ex. a small 320x240 video), and do:
I only get a green frame. That is caused by a part of the last commit to the framebuffer producer:
@@ -133,7 +136,7 @@ static int framebuffer_get_image( mlt_frame this, uint8_t **image, mlt_image_for
// Which frames are buffered?
- uint8_t *first_image = mlt_properties_get_data( first_frame_properties, "image", NULL );
+ uint8_t *first_image = mlt_properties_get_data( first_frame_properties, "image", &size );
if( first_image == NULL )
reverting this fixes the issue.
Using the same low res video, do:
melt framebuffer:test.mpg -consumer sdl_preview
Try to seek a little and you can see that still images are corrupted or melt crashes.
My attached patch fixes these 2 issues, I think it would be great to have that fix in the release.
Get latest updates about Open Source Projects, Conferences and News.