b4530c988d
* fixes some flv playback * removed ggi output - broken i386/sparc64. * removed gui (deprecated) - use gnome-mplayer instead. * removed win32 codecs - opensource codecs are good quality. OK, naddy@, sthen@
31 lines
1.4 KiB
Plaintext
31 lines
1.4 KiB
Plaintext
$OpenBSD: patch-libmpcodecs_ad_faad_c,v 1.3 2009/10/11 13:36:23 edd Exp $
|
|
--- libmpcodecs/ad_faad.c.orig Thu Jul 30 12:37:54 2009
|
|
+++ libmpcodecs/ad_faad.c Thu Jul 30 12:42:42 2009
|
|
@@ -83,7 +83,7 @@ static int aac_probe(unsigned char *buffer, int len)
|
|
|
|
static int init(sh_audio_t *sh)
|
|
{
|
|
- unsigned long faac_samplerate;
|
|
+ unsigned int faac_samplerate;
|
|
unsigned char faac_channels;
|
|
int faac_init, pos = 0;
|
|
faac_hdec = faacDecOpen();
|
|
@@ -166,7 +166,7 @@ static int init(sh_audio_t *sh)
|
|
return 0;
|
|
} else {
|
|
mp_msg(MSGT_DECAUDIO,MSGL_V,"FAAD: Decoder init done (%dBytes)!\n", sh->a_in_buffer_len); // XXX: remove or move to debug!
|
|
- mp_msg(MSGT_DECAUDIO,MSGL_V,"FAAD: Negotiated samplerate: %ldHz channels: %d\n", faac_samplerate, faac_channels);
|
|
+ mp_msg(MSGT_DECAUDIO,MSGL_V,"FAAD: Negotiated samplerate: %dHz channels: %d\n", faac_samplerate, faac_channels);
|
|
sh->channels = faac_channels;
|
|
if (audio_output_channels <= 2) sh->channels = faac_channels > 1 ? 2 : 1;
|
|
sh->samplerate = faac_samplerate;
|
|
@@ -294,7 +294,7 @@ static int decode_audio(sh_audio_t *sh,unsigned char *
|
|
} else {
|
|
/* XXX: samples already multiplied by channels! */
|
|
mp_msg(MSGT_DECAUDIO,MSGL_DBG2,"FAAD: Successfully decoded frame (%ld Bytes)!\n",
|
|
- sh->samplesize*faac_finfo.samples);
|
|
+ (long)sh->samplesize*faac_finfo.samples);
|
|
|
|
if (sh->channels >= 5)
|
|
reorder_channel_copy_nch(faac_sample_buffer,
|