git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@726
d19143bc-622f-0410-bfdd-
b5b2a6649095
}
// Allocate picture
- output = alloc_picture( video_st->codec.pix_fmt, width, height );
+ if ( video_st )
+ output = alloc_picture( video_st->codec.pix_fmt, width, height );
// Last check - need at least one stream
if ( audio_st == NULL && video_st == NULL )
url_fclose(&oc->pb);
// Clean up input and output frames
- av_free( output->data[0] );
+ if ( output )
+ av_free( output->data[0] );
av_free( output );
av_free( input->data[0] );
av_free( input );