projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bbe0053
)
qtmux: initialize mdhd language code as undefined
author
Mark Nauwelaerts
<mnauw@users.sourceforge.net>
Tue, 27 Jun 2017 18:14:57 +0000
(20:14 +0200)
committer
Mark Nauwelaerts
<mnauw@users.sourceforge.net>
Wed, 28 Jun 2017 18:00:44 +0000
(20:00 +0200)
gst/isomp4/atoms.c
patch
|
blob
|
history
diff --git
a/gst/isomp4/atoms.c
b/gst/isomp4/atoms.c
index
adce9a1
..
9be74ac
100644
(file)
--- a/
gst/isomp4/atoms.c
+++ b/
gst/isomp4/atoms.c
@@
-1112,7
+1112,11
@@
atom_mdhd_init (AtomMDHD * mdhd)
atom_full_init (&mdhd->header, FOURCC_mdhd, 0, 0, 0, flags);
common_time_info_init (&mdhd->time_info);
- mdhd->language_code = 0;
+ /* 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->quality = 0;
}