mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-04 13:32:29 +00:00
gst/rtp/: Added preliminary ASF depayloader.
Original commit message from CVS: * gst/rtp/gstrtp.c: (plugin_init): * gst/rtp/gstrtpasfdepay.c: (gst_rtp_asf_depay_base_init), (gst_rtp_asf_depay_class_init), (gst_rtp_asf_depay_init), (decode_base64), (gst_rtp_asf_depay_setcaps), (gst_rtp_asf_depay_process), (gst_rtp_asf_depay_set_property), (gst_rtp_asf_depay_get_property), (gst_rtp_asf_depay_change_state), (gst_rtp_asf_depay_plugin_init): * gst/rtp/gstrtpasfdepay.h: Added preliminary ASF depayloader. * gst/rtp/gstrtph264depay.c: (decode_base64): Fix base64 decoding.
This commit is contained in:
parent
a365a29c77
commit
93c0a73ce0
3 changed files with 20 additions and 1 deletions
15
ChangeLog
15
ChangeLog
|
@ -1,3 +1,18 @@
|
||||||
|
2006-09-20 Wim Taymans <wim@fluendo.com>
|
||||||
|
|
||||||
|
* gst/rtp/gstrtp.c: (plugin_init):
|
||||||
|
* gst/rtp/gstrtpasfdepay.c: (gst_rtp_asf_depay_base_init),
|
||||||
|
(gst_rtp_asf_depay_class_init), (gst_rtp_asf_depay_init),
|
||||||
|
(decode_base64), (gst_rtp_asf_depay_setcaps),
|
||||||
|
(gst_rtp_asf_depay_process), (gst_rtp_asf_depay_set_property),
|
||||||
|
(gst_rtp_asf_depay_get_property), (gst_rtp_asf_depay_change_state),
|
||||||
|
(gst_rtp_asf_depay_plugin_init):
|
||||||
|
* gst/rtp/gstrtpasfdepay.h:
|
||||||
|
Added preliminary ASF depayloader.
|
||||||
|
|
||||||
|
* gst/rtp/gstrtph264depay.c: (decode_base64):
|
||||||
|
Fix base64 decoding.
|
||||||
|
|
||||||
2006-09-20 Wim Taymans <wim@fluendo.com>
|
2006-09-20 Wim Taymans <wim@fluendo.com>
|
||||||
|
|
||||||
* gst/rtsp/URLS:
|
* gst/rtsp/URLS:
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "gstrtpasfdepay.h"
|
||||||
#include "gstrtpdepay.h"
|
#include "gstrtpdepay.h"
|
||||||
#include "gstrtppcmupay.h"
|
#include "gstrtppcmupay.h"
|
||||||
#include "gstrtppcmapay.h"
|
#include "gstrtppcmapay.h"
|
||||||
|
@ -49,6 +50,9 @@
|
||||||
static gboolean
|
static gboolean
|
||||||
plugin_init (GstPlugin * plugin)
|
plugin_init (GstPlugin * plugin)
|
||||||
{
|
{
|
||||||
|
if (!gst_rtp_asf_depay_plugin_init (plugin))
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
if (!gst_rtp_depay_plugin_init (plugin))
|
if (!gst_rtp_depay_plugin_init (plugin))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
|
|
@ -179,7 +179,7 @@ decode_base64 (gchar * in, guint8 * out)
|
||||||
guint len = 0;
|
guint len = 0;
|
||||||
|
|
||||||
v1 = a2bin[(gint) * in];
|
v1 = a2bin[(gint) * in];
|
||||||
while (v1 < 63) {
|
while (v1 <= 63) {
|
||||||
/* read 4 bytes, write 3 bytes, invalid base64 are zeroes */
|
/* read 4 bytes, write 3 bytes, invalid base64 are zeroes */
|
||||||
v2 = a2bin[(gint) * ++in];
|
v2 = a2bin[(gint) * ++in];
|
||||||
*out++ = (v1 << 2) | ((v2 & 0x3f) >> 4);
|
*out++ = (v1 << 2) | ((v2 & 0x3f) >> 4);
|
||||||
|
|
Loading…
Reference in a new issue