rtpsbcdepay: Fix potential NULL pointer dereference
authorSebastian Dröge <sebastian@centricular.com>
Sat, 7 Oct 2017 11:06:38 +0000 (14:06 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Sat, 7 Oct 2017 11:06:38 +0000 (14:06 +0300)
CID 1418864

gst/rtp/gstrtpsbcdepay.c

index cd49c9f..9549bb0 100644 (file)
@@ -366,7 +366,7 @@ gst_rtp_sbc_depay_process (GstRTPBaseDepayload * base, GstRTPBuffer * rtp)
     }
   }
 
-  if (depay->ignore_timestamps) {
+  if (depay->ignore_timestamps && data) {
     GstClockTime duration;
 
     gst_audio_stream_align_process (depay->stream_align,