mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
rtph264depay: fix base64 decoding
We can't pass -1 to _decode_step, that functions returns 0 right away instead of decoding up to the string end.
This commit is contained in:
parent
710ff959e3
commit
f18dabdd57
1 changed files with 5 additions and 2 deletions
|
@ -251,10 +251,13 @@ gst_rtp_h264_depay_setcaps (GstBaseRTPDepayload * depayload, GstCaps * caps)
|
|||
guint save = 0;
|
||||
gint state = 0;
|
||||
|
||||
GST_DEBUG_OBJECT (depayload, "decoding param %d", i);
|
||||
GST_DEBUG_OBJECT (depayload, "decoding param %d (%s)", i, params[i]);
|
||||
memcpy (b64, sync_bytes, sizeof (sync_bytes));
|
||||
b64 += sizeof (sync_bytes);
|
||||
len = g_base64_decode_step (params[i], -1, b64, &state, &save);
|
||||
len =
|
||||
g_base64_decode_step (params[i], strlen (params[i]), b64, &state,
|
||||
&save);
|
||||
GST_DEBUG_OBJECT (depayload, "decoded %d bytes", len);
|
||||
total += len + sizeof (sync_bytes);
|
||||
b64 += len;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue