mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
omxaacenc: also set 'profile' if mpegversion is 4
Like done by gst_codec_utils_aac_caps_set_level_and_profile which is called by avenc_aac, ffaac and voaacenc. https://bugzilla.gnome.org/show_bug.cgi?id=735208
This commit is contained in:
parent
4211e4c29a
commit
6364463918
1 changed files with 1 additions and 1 deletions
|
@ -469,7 +469,7 @@ gst_omx_aac_enc_get_caps (GstOMXAudioEnc * enc, GstOMXPort * port,
|
|||
if (mpegversion != 0)
|
||||
gst_caps_set_simple (caps, "mpegversion", G_TYPE_INT, mpegversion,
|
||||
"stream-format", G_TYPE_STRING, stream_format, NULL);
|
||||
if (profile != NULL && mpegversion == 2)
|
||||
if (profile != NULL && (mpegversion == 2 || mpegversion == 4))
|
||||
gst_caps_set_simple (caps, "profile", G_TYPE_STRING, profile, NULL);
|
||||
if (profile != NULL && mpegversion == 4)
|
||||
gst_caps_set_simple (caps, "base-profile", G_TYPE_STRING, profile, NULL);
|
||||
|
|
Loading…
Reference in a new issue