[FFmpeg-cvslog] mov: Fix little endian audio detection

Vittorio Giovara git at videolan.org
Tue Mar 17 21:56:38 CET 2015


ffmpeg | branch: master | Vittorio Giovara <vittorio.giovara at gmail.com> | Fri Mar 13 19:45:14 2015 +0000| [423f5d50e499ab972f507115700c8f31ed8993e4] | committer: Vittorio Giovara

mov: Fix little endian audio detection

Set this field to TRUE if the audio component is to operate on
little-endian data, and FALSE otherwise.

However TRUE and FALSE are not defined. Since this flag is just a boolean,
interpret all values except for 0 as little endian.

Sample-Id: 64bit_FLOAT_Little_Endian.mov

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=423f5d50e499ab972f507115700c8f31ed8993e4
---

 libavformat/mov.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/mov.c b/libavformat/mov.c
index df7357f..45c843f 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -944,7 +944,7 @@ static int mov_read_enda(MOVContext *c, AVIOContext *pb, MOVAtom atom)
         return 0;
     st = c->fc->streams[c->fc->nb_streams-1];
 
-    little_endian = avio_rb16(pb);
+    little_endian = !!avio_rb16(pb);
     av_dlog(c->fc, "enda %d\n", little_endian);
     if (little_endian == 1) {
         switch (st->codec->codec_id) {



More information about the ffmpeg-cvslog mailing list