32e8a1e508
- bump PKGNAME ok brad@
40 lines
1.6 KiB
Plaintext
40 lines
1.6 KiB
Plaintext
$OpenBSD: patch-modules_codec_faad_c,v 1.5 2008/09/15 22:14:23 jakemsr Exp $
|
|
--- modules/codec/faad.c.orig Tue Jul 8 13:59:23 2008
|
|
+++ modules/codec/faad.c Sat Sep 6 15:16:11 2008
|
|
@@ -150,7 +150,7 @@ static int Open( vlc_object_t *p_this )
|
|
if( p_dec->fmt_in.i_extra > 0 )
|
|
{
|
|
/* We have a decoder config so init the handle */
|
|
- unsigned long i_rate;
|
|
+ unsigned int i_rate;
|
|
unsigned char i_channels;
|
|
|
|
if( faacDecInit2( p_sys->hfaad, p_dec->fmt_in.p_extra,
|
|
@@ -253,7 +253,7 @@ static aout_buffer_t *DecodeBlock( decoder_t *p_dec, b
|
|
if( p_dec->fmt_out.audio.i_rate == 0 && p_dec->fmt_in.i_extra > 0 )
|
|
{
|
|
/* We have a decoder config so init the handle */
|
|
- unsigned long i_rate;
|
|
+ unsigned int i_rate;
|
|
unsigned char i_channels;
|
|
|
|
if( faacDecInit2( p_sys->hfaad, p_dec->fmt_in.p_extra,
|
|
@@ -268,7 +268,7 @@ static aout_buffer_t *DecodeBlock( decoder_t *p_dec, b
|
|
|
|
if( p_dec->fmt_out.audio.i_rate == 0 && p_sys->i_buffer )
|
|
{
|
|
- unsigned long i_rate;
|
|
+ unsigned int i_rate;
|
|
unsigned char i_channels;
|
|
|
|
/* Init faad with the first frame */
|
|
@@ -368,7 +368,7 @@ static aout_buffer_t *DecodeBlock( decoder_t *p_dec, b
|
|
const char *psz_ext = (frame.sbr && frame.ps) ? "SBR+PS" :
|
|
frame.sbr ? "SBR" : "PS";
|
|
|
|
- msg_Dbg( p_dec, "AAC %s (channels: %u, samplerate: %lu)",
|
|
+ msg_Dbg( p_dec, "AAC %s (channels: %u, samplerate: %u)",
|
|
psz_ext, frame.channels, frame.samplerate );
|
|
|
|
if( asprintf( &psz_cat, _("Stream %d"), p_dec->fmt_in.i_id ) != -1 )
|