summaryrefslogtreecommitdiff
path: root/multimedia/mplayer
diff options
context:
space:
mode:
authorThomas Zander <riggs@FreeBSD.org>2017-11-05 15:27:59 +0000
committerThomas Zander <riggs@FreeBSD.org>2017-11-05 15:27:59 +0000
commit7e359aed0e4e6d3277967772672ef3c9349601f7 (patch)
treefaa279e7154b05e17feb576e7dd9b12305f04f64 /multimedia/mplayer
parent1: Update to 1.2.30. (diff)
Retain API compatibility with faac 1.29.9 and later
Details: - See PR 223416
Notes
Notes: svn path=/head/; revision=453549
Diffstat (limited to 'multimedia/mplayer')
-rw-r--r--multimedia/mplayer/files/patch-libmpcodecs_ae__faac.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/multimedia/mplayer/files/patch-libmpcodecs_ae__faac.c b/multimedia/mplayer/files/patch-libmpcodecs_ae__faac.c
new file mode 100644
index 000000000000..59bffc2bd20b
--- /dev/null
+++ b/multimedia/mplayer/files/patch-libmpcodecs_ae__faac.c
@@ -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)