}
}
}
+ result = strdup( result );
free( protocol );
- return strdup( result );
+ return result;
}
static int get_basic_info( producer_avformat self, mlt_profile profile, const char *filename )
free( (void*) params.standard );
// If successful, then try to get additional info
- if ( !error )
+ if ( !error && self->video_format )
{
// Get the stream info
error = av_find_stream_info( self->video_format ) < 0;
// Continue if no error
- if ( !error )
+ if ( !error && self->video_format )
{
// Find default audio and video streams
find_default_streams( self );