]> git.sesse.net Git - mlt/blobdiff - src/modules/avformat/producer_avformat.c
Fix crash when repeating frames after failure to decode video.
[mlt] / src / modules / avformat / producer_avformat.c
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 ) ) )