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

2015-06-01 Thread Vittorio Giovara
ffmpeg | branch: release/2.2 | Vittorio Giovara vittorio.giov...@gmail.com | 
Fri Mar 13 19:45:14 2015 +| [8b9d0f5d3aceb67d472d190db53a21177fea9275] | 
committer: Reinhard Tartler

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
(cherry picked from commit 8ae4d4e117626313e0b7df746e82de84d00d160a)
Signed-off-by: Reinhard Tartler siret...@tauware.de

 http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8b9d0f5d3aceb67d472d190db53a21177fea9275
---

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

diff --git a/libavformat/mov.c b/libavformat/mov.c
index 5ef343e..4f0062d 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -816,7 +816,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) {

___
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog


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

2015-05-19 Thread Vittorio Giovara
ffmpeg | branch: release/2.4 | Vittorio Giovara vittorio.giov...@gmail.com | 
Fri Mar 13 19:45:14 2015 +| [8ae4d4e117626313e0b7df746e82de84d00d160a] | 
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=8ae4d4e117626313e0b7df746e82de84d00d160a
---

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

diff --git a/libavformat/mov.c b/libavformat/mov.c
index d14dc7c..60d171d 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -864,7 +864,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) {

___
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog