Permalink
Browse files

Fix possible null pointer dereference (coverity-1215693).

  • Loading branch information...
1 parent ecbda4a commit 906b22199b7dad14c403308208bf525da58dde15 @ddennedy ddennedy committed May 24, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/framework/mlt_frame.c
@@ -757,7 +757,7 @@ int mlt_frame_get_audio( mlt_frame self, void **buffer, mlt_audio_format *format
}
// TODO: This does not belong here
- if ( *format == mlt_audio_s16 && mlt_properties_get( properties, "meta.volume" ) )
+ if ( *format == mlt_audio_s16 && mlt_properties_get( properties, "meta.volume" ) && *buffer )
{
double value = mlt_properties_get_double( properties, "meta.volume" );

0 comments on commit 906b221

Please sign in to comment.