diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2012-03-21 14:18:16 -0700 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-04-06 05:41:21 +0200 |
commit | e636aa1a56bcd91242c25282dcb00929196470eb (patch) | |
tree | 3f1449174a44ac54b0df7291499e6fa321929e1e /libavformat/isom.c | |
parent | 76c79aa28fc8cf0bfe52915317a3cfc72383d0ef (diff) | |
download | ffmpeg-e636aa1a56bcd91242c25282dcb00929196470eb.tar.gz |
movdec: handle 0x7fff langcode as macintosh per the specs
The correct point that seperates ISO and MAC language codes is 0x400
according to the current QT spec. Old QT specs did not list where this
seperation is but apparently only defined the meaning of the first 137.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/isom.c')
-rw-r--r-- | libavformat/isom.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/isom.c b/libavformat/isom.c index 04e3f3f0d0..2042b65f48 100644 --- a/libavformat/isom.c +++ b/libavformat/isom.c @@ -348,7 +348,7 @@ int ff_mov_lang_to_iso639(unsigned code, char to[4]) memset(to, 0, 4); /* is it the mangled iso code? */ /* see http://www.geocities.com/xhelmboyx/quicktime/formats/mp4-layout.txt */ - if (code > 138) { + if (code >= 0x400 && code != 0x7fff) { for (i = 2; i >= 0; i--) { to[i] = 0x60 + (code & 0x1f); code >>= 5; |