From: Sebastian Dröge Date: Thu, 6 Sep 2018 17:06:10 +0000 (+0300) Subject: qtmux: Use existing helper function to create "und" language code X-Git-Tag: 1.16.2~398 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d9b52d1f5e0887111249de20190a087f4285c926;p=platform%2Fupstream%2Fgst-plugins-good.git qtmux: Use existing helper function to create "und" language code --- diff --git a/gst/isomp4/atoms.c b/gst/isomp4/atoms.c index aa81dbc..8e53eab 100644 --- a/gst/isomp4/atoms.c +++ b/gst/isomp4/atoms.c @@ -1154,8 +1154,7 @@ atom_mdhd_init (AtomMDHD * mdhd) /* tempting as it may be to simply 0-initialize, * that will have the demuxer (correctly) come up with 'eng' as language * so explicitly specify undefined instead */ - mdhd->language_code = - ('u' - 0x60) * 0x400 + ('n' - 0x60) * 0x20 + ('d' - 0x60); + mdhd->language_code = language_code ("und"); mdhd->quality = 0; } diff --git a/gst/isomp4/gstqtmux.c b/gst/isomp4/gstqtmux.c index cf8148d..fafd94b 100644 --- a/gst/isomp4/gstqtmux.c +++ b/gst/isomp4/gstqtmux.c @@ -6153,9 +6153,7 @@ gst_qt_mux_sink_event (GstCollectPads * pads, GstCollectData * data, g_assert (qtpad); if (qtpad->trak) { /* https://developer.apple.com/library/mac/#documentation/QuickTime/QTFF/QTFFChap4/qtff4.html */ - qtpad->trak->mdia.mdhd.language_code = - (iso_code[0] - 0x60) * 0x400 + (iso_code[1] - 0x60) * 0x20 + - (iso_code[2] - 0x60); + qtpad->trak->mdia.mdhd.language_code = language_code (iso_code); } } g_free (code);