[FFmpeg-devel] [PATCH]Fix little-endian audio in mov

Mike Scheutzow mike.scheutzow at alcatel-lucent.com
Mon May 16 18:49:45 CEST 2011


Carl Eugen Hoyos wrote:
> Hi!
> 
> Quicktime specification says that short littleEndian  is "TRUE" for little 
> endian, "FALSE" for big endian. The samples on trac (that are all little 
> endian) have: 0xab01, 0xbc01 and 0x5e01.
> MPlayer (demux_mov.c 763) test is:
> if (char2short(trak->stdata,52+20)) -> little endian
> 
> Please comment, Carl Eugen

> -    little_endian = avio_rb16(pb);
> +    little_endian = avio_rb16(pb) & 0xF;


Why did you chose a 4 bit mask? 8 bit would work for the examples you 
showed.


Mike Scheutzow


More information about the ffmpeg-devel mailing list