[FFmpeg-devel] [PATCH] movdec: handle 0x7fff langcode as macintosh per the specs
Baptiste Coudurier
baptiste.coudurier at gmail.com
Wed Mar 21 22:21:47 CET 2012
On 03/21/2012 02:09 PM, Baptiste Coudurier wrote:
> ---
> libavformat/mov.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/libavformat/mov.c b/libavformat/mov.c
> index de290aa..7af1292 100644
> --- a/libavformat/mov.c
> +++ b/libavformat/mov.c
> @@ -253,7 +253,7 @@ static int mov_read_udta_string(MOVContext *c, AVIOContext *pb, MOVAtom atom)
> if (parse)
> parse(c, pb, str_size, key);
> else {
> - if (data_type == 3 || (data_type == 0 && langcode < 0x800)) { // MAC Encoded
> + if (data_type == 3 || (data_type == 0 && (langcode < 0x400 || langcode == 0x7FFF)) { // MAC Encoded
> mov_read_mac_string(c, pb, str_size, str, sizeof(str));
> } else {
> avio_read(pb, str, str_size);
This one is obsolete, replaced by the next one
--
Baptiste COUDURIER
Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
FFmpeg maintainer http://www.ffmpeg.org
More information about the ffmpeg-devel
mailing list