omxaacenc: let encoder know about incoming rate/channels

https://bugzilla.gnome.org/show_bug.cgi?id=777223
This commit is contained in:
Vincent Penquerc'h 2017-01-13 16:23:12 +00:00 committed by Nicolas Dufresne
parent ed5f63c9ef
commit 4e01a6f7b1

View file

@ -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;