Retain API compatibility with faac 1.29.9 and later
Details: - See PR 223416
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
PORTNAME= mencoder
|
||||
PORTVERSION= ${MPLAYER_PORT_VERSION}.${MPLAYER_SNAPSHOT_DATE:S/-//g}
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= multimedia audio
|
||||
|
||||
MAINTAINER= riggs@FreeBSD.org
|
||||
|
||||
13
multimedia/mplayer/files/patch-libmpcodecs_ae__faac.c
Normal file
13
multimedia/mplayer/files/patch-libmpcodecs_ae__faac.c
Normal file
@@ -0,0 +1,13 @@
|
||||
--- libmpcodecs/ae_faac.c.orig 2011-07-27 15:33:03 UTC
|
||||
+++ libmpcodecs/ae_faac.c
|
||||
@@ -183,7 +183,9 @@ int mpae_init_faac(audio_encoder_t *enco
|
||||
if(MAIN==0) config->aacObjectType--;
|
||||
config->mpegVersion = (param_mpeg == 4 ? MPEG4 : MPEG2);
|
||||
config->useTns = param_tns;
|
||||
- config->allowMidside = 1;
|
||||
+ //Do not set allowMidside for API compatibility with faac,
|
||||
+ //see https://github.com/knik0/faac/issues/8 for details
|
||||
+ //config->allowMidside = 1;
|
||||
config->shortctl = SHORTCTL_NORMAL;
|
||||
param_cutoff = param_cutoff ? param_cutoff : encoder->params.sample_rate / 2;
|
||||
if(param_cutoff > encoder->params.sample_rate / 2)
|
||||
Reference in New Issue
Block a user