]> git.sesse.net Git - mlt/commitdiff
Fix crash when repeating frames after failure to decode video.
authorDan Dennedy <dan@dennedy.org>
Thu, 15 Jul 2010 06:48:33 +0000 (23:48 -0700)
committerDan Dennedy <dan@dennedy.org>
Thu, 15 Jul 2010 06:48:33 +0000 (23:48 -0700)
configure
src/modules/avformat/producer_avformat.c

index 716eb1b286b803232ebb3abe5db2a23d43634602..b14fcbc7bbe703f1356c18d26022ae22b9d9e2f9 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-export version=0.5.6
+export version=0.5.7
 export soversion=2
 
 show_help()
index 818206f646f3fcd3077fe055ec5cb4e04de46e87..8f4274cbf42dd3e532f638c3edc57ab9ffe05620 100644 (file)
@@ -1005,7 +1005,7 @@ static int producer_get_image( mlt_frame frame, uint8_t **buffer, mlt_image_form
        }
 
        // Duplicate the last image if necessary (see comment on rawvideo below)
-       if ( this->av_frame && this->got_picture && this->seekable
+       if ( this->av_frame && this->av_frame->linesize[0] && this->got_picture && this->seekable
                 && ( paused
                          || this->current_position == req_position
                          || ( !use_new_seek && this->current_position > req_position ) ) )