From: Dan Dennedy Date: Thu, 15 Jul 2010 06:48:33 +0000 (-0700) Subject: Fix crash when repeating frames after failure to decode video. X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=0d8eb5b94dcfadffd8e4d67efd62ec09a0934c7f;p=mlt Fix crash when repeating frames after failure to decode video. --- diff --git a/configure b/configure index 716eb1b2..b14fcbc7 100755 --- 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() diff --git a/src/modules/avformat/producer_avformat.c b/src/modules/avformat/producer_avformat.c index 818206f6..8f4274cb 100644 --- a/src/modules/avformat/producer_avformat.c +++ b/src/modules/avformat/producer_avformat.c @@ -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 ) ) )