summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2017-01-13 16:23:12 +0000
committerSebastian Dröge <sebastian@centricular.com>2017-01-25 14:24:56 +0200
commit601eb4f98033c9f25f48871d823ae407af448005 (patch)
treeff2a2b578e4ebf0ef6f97d2f085d76111c155805
parent3caee4b362241b199485e71fd4089b18d2e7fd0c (diff)
omxaacenc: let encoder know about incoming rate/channels
https://bugzilla.gnome.org/show_bug.cgi?id=777223
-rw-r--r--omx/gstomxaacenc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/omx/gstomxaacenc.c b/omx/gstomxaacenc.c
index 1ef8ff9..1cdd2e0 100644
--- a/omx/gstomxaacenc.c
+++ b/omx/gstomxaacenc.c
@@ -293,6 +293,9 @@ gst_omx_aac_enc_set_format (GstOMXAudioEnc * enc, GstOMXPort * port,
}
gst_caps_unref (peercaps);
+
+ aac_profile.nSampleRate = info->rate;
+ aac_profile.nChannels = info->channels;
}
aac_profile.nAACtools = self->aac_tools;