]> git.sesse.net Git - mlt/commitdiff
Fix possible null pointer dereference (coverity-1026785).
authorDan Dennedy <dan@dennedy.org>
Sun, 2 Jun 2013 21:13:13 +0000 (14:13 -0700)
committerDan Dennedy <dan@dennedy.org>
Sun, 2 Jun 2013 21:54:42 +0000 (14:54 -0700)
src/modules/avsync/producer_blipflash.c

index 612f4d154dd4aa3125ee6fcedd477539bd3914d7..7e9c693df59618304103b49805d0956a0e4d42fa 100644 (file)
@@ -62,7 +62,7 @@ static void fill_blip( mlt_properties producer_properties, float* buffer, int fr
                mlt_properties_set_data( producer_properties, "_blip", blip, new_size, mlt_pool_release, NULL );
        };
 
-       memcpy( buffer, blip, new_size );
+       if( blip ) memcpy( buffer, blip, new_size );
 }
 
 static int producer_get_audio( mlt_frame frame, int16_t** buffer, mlt_audio_format* format, int* frequency, int* channels, int* samples )