mpeg4videoparse: Don't call gst_buffer_memcmp() with a NULL buffer

This commit is contained in:
Sebastian Dröge 2012-01-09 14:28:14 +01:00
parent 2a255cca8b
commit c76890b7fa

View file

@ -239,7 +239,8 @@ gst_mpeg4vparse_process_config (GstMpeg4VParse * mp4vparse,
const guint8 * data, guint offset, gsize size)
{
/* only do stuff if something new */
if (!gst_buffer_memcmp (mp4vparse->config, offset, data, size))
if (mp4vparse->config
&& !gst_buffer_memcmp (mp4vparse->config, offset, data, size))
return TRUE;
if (mp4vparse->vol_offset < 0) {