[0.11] gst-plugins-bad: mpeg4videoparse: Don't call gst_buffer_memcmp() with a NULL buffer

Sebastian Dröge slomo at kemper.freedesktop.org
Mon Jan 9 05:28:34 PST 2012


Module: gst-plugins-bad
Branch: 0.11
Commit: c76890b7fabf1ea0a06266399ff73d4fe3486595
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=c76890b7fabf1ea0a06266399ff73d4fe3486595

Author: Sebastian Dröge <sebastian.droege at collabora.co.uk>
Date:   Mon Jan  9 14:28:14 2012 +0100

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

---

 gst/videoparsers/gstmpeg4videoparse.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/gst/videoparsers/gstmpeg4videoparse.c b/gst/videoparsers/gstmpeg4videoparse.c
index 53f97de..5d8b1bd 100644
--- a/gst/videoparsers/gstmpeg4videoparse.c
+++ b/gst/videoparsers/gstmpeg4videoparse.c
@@ -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) {



More information about the gstreamer-commits mailing list