mpeg4videoparse: Don't call gst_buffer_memcmp() with a NULL buffer
This commit is contained in:
parent
2a255cca8b
commit
c76890b7fa
@ -239,7 +239,8 @@ gst_mpeg4vparse_process_config (GstMpeg4VParse * mp4vparse,
|
|||||||
const guint8 * data, guint offset, gsize size)
|
const guint8 * data, guint offset, gsize size)
|
||||||
{
|
{
|
||||||
/* only do stuff if something new */
|
/* 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;
|
return TRUE;
|
||||||
|
|
||||||
if (mp4vparse->vol_offset < 0) {
|
if (mp4vparse->vol_offset < 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user