openbsd-ports/devel/gstreamer-plugins/patches/patch-ext_faad_gstfaad_c
jakemsr 468e026756 - use exact width data types for libfaad interaction
- LIB_DEPENDS-faad libfaad >= 1.0
- bump PKGNAME-main and PKGNAME-${PLUGIN}
- remove unused PATCHLEVEL variable
- adjust WANTLIB-main and WANTLIB-gnome as per lib-depends-check
- sync patches with update-patches

OK naddy@
2007-06-29 06:13:44 +00:00

40 lines
1.2 KiB
Plaintext

$OpenBSD: patch-ext_faad_gstfaad_c,v 1.1 2007/06/29 06:13:44 jakemsr Exp $
--- ext/faad/gstfaad.c.orig Fri Jun 1 22:25:24 2007
+++ ext/faad/gstfaad.c Fri Jun 1 22:33:43 2007
@@ -301,8 +301,8 @@ gst_faad_sinkconnect (GstPad * pad, const GstCaps * ca
faad->packetised = FALSE;
if ((value = gst_structure_get_value (str, "codec_data"))) {
- unsigned long samplerate;
- guchar channels;
+ guint32 samplerate;
+ guint8 channels;
/* We have codec data, means packetised stream */
faad->packetised = TRUE;
@@ -625,9 +625,9 @@ gst_faad_sync (GstBuffer * buf, guint * off)
static void
gst_faad_chain (GstPad * pad, GstData * data)
{
- guint input_size;
+ guint32 input_size;
guint skip_bytes = 0;
- guchar *input_data;
+ guint8 *input_data;
GstFaad *faad = GST_FAAD (gst_pad_get_parent (pad));
GstBuffer *buf, *outbuf;
faacDecFrameInfo info;
@@ -674,9 +674,9 @@ gst_faad_chain (GstPad * pad, GstData * data)
/* init if not already done during capsnego */
if (!faad->init) {
- unsigned long samplerate;
- guchar channels;
- glong init_res;
+ guint32 samplerate;
+ guint8 channels;
+ gint32 init_res;
init_res = faacDecInit (faad->handle, input_data, input_size,
&samplerate, &channels);