projects
/
platform
/
upstream
/
gst-plugins-good.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d65de43
)
h264depay: unmap on empty packet
author
Wim Taymans
<wim.taymans@collabora.co.uk>
Tue, 13 Mar 2012 18:26:23 +0000
(19:26 +0100)
committer
Wim Taymans
<wim.taymans@collabora.co.uk>
Tue, 13 Mar 2012 18:26:23 +0000
(19:26 +0100)
gst/rtp/gstrtph264depay.c
patch
|
blob
|
history
diff --git
a/gst/rtp/gstrtph264depay.c
b/gst/rtp/gstrtph264depay.c
index
9a5c8f2
..
46d97ed
100644
(file)
--- a/
gst/rtp/gstrtph264depay.c
+++ b/
gst/rtp/gstrtph264depay.c
@@
-684,7
+684,7
@@
gst_rtp_h264_depay_process (GstRTPBaseDepayload * depayload, GstBuffer * buf)
GST_DEBUG_OBJECT (rtph264depay, "receiving %d bytes", payload_len);
if (payload_len == 0)
-
return NULL
;
+
goto empty_packet
;
/* +---------------+
* |0|1|2|3|4|5|6|7|
@@
-899,6
+899,12
@@
gst_rtp_h264_depay_process (GstRTPBaseDepayload * depayload, GstBuffer * buf)
return outbuf;
/* ERRORS */
+empty_packet:
+ {
+ GST_DEBUG_OBJECT (rtph264depay, "empty packet");
+ gst_rtp_buffer_unmap (&rtp);
+ return NULL;
+ }
undefined_type:
{
GST_ELEMENT_WARNING (rtph264depay, STREAM, DECODE,