From 0d8eb5b94dcfadffd8e4d67efd62ec09a0934c7f Mon Sep 17 00:00:00 2001 From: Dan Dennedy Date: Wed, 14 Jul 2010 23:48:33 -0700 Subject: [PATCH] Fix crash when repeating frames after failure to decode video. --- configure | 2 +- src/modules/avformat/producer_avformat.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 ) ) ) -- 2.39.2