[SCM] libav/experimental: fix big endian files support

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:08:29 UTC 2013


The following commit has been merged in the experimental branch:
commit 597958ada78b8d989130f9fcc670a891cd70dd65
Author: Aurelien Jacobs <aurel at gnuage.org>
Date:   Thu Oct 18 23:22:50 2007 +0000

    fix big endian files support
    
    Originally committed as revision 10801 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavformat/electronicarts.c b/libavformat/electronicarts.c
index 1678d68..7aaff86 100644
--- a/libavformat/electronicarts.c
+++ b/libavformat/electronicarts.c
@@ -290,7 +290,7 @@ static int ea_read_packet(AVFormatContext *s,
 
     while (!packet_read) {
         chunk_type = get_le32(pb);
-        chunk_size = get_le32(pb) - 8;
+        chunk_size = (ea->big_endian ? get_be32(pb) : get_le32(pb)) - 8;
 
         switch (chunk_type) {
         /* audio data */

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list