[FFmpeg-cvslog] r10796 - trunk/libavformat/electronicarts.c

aurel subversion
Fri Oct 19 00:47:56 CEST 2007


Author: aurel
Date: Fri Oct 19 00:47:56 2007
New Revision: 10796

Log:
move compression_type as a function local var instead of context var

Modified:
   trunk/libavformat/electronicarts.c

Modified: trunk/libavformat/electronicarts.c
==============================================================================
--- trunk/libavformat/electronicarts.c	(original)
+++ trunk/libavformat/electronicarts.c	Fri Oct 19 00:47:56 2007
@@ -54,7 +54,6 @@ typedef struct EaDemuxContext {
 
     int num_channels;
     int num_samples;
-    int compression_type;
 } EaDemuxContext;
 
 static uint32_t read_arbitary(ByteIOContext *pb) {
@@ -83,6 +82,7 @@ static int process_audio_header_elements
     int inHeader = 1;
     EaDemuxContext *ea = s->priv_data;
     ByteIOContext *pb = &s->pb;
+    int compression_type;
 
     ea->num_channels = 1;
 
@@ -105,8 +105,8 @@ static int process_audio_header_elements
                     av_log (s, AV_LOG_INFO, "num_channels (element 0x82) set to 0x%08x\n", ea->num_channels);
                     break;
                 case 0x83:
-                    ea->compression_type = read_arbitary(pb);
-                    av_log (s, AV_LOG_INFO, "compression_type (element 0x83) set to 0x%08x\n", ea->compression_type);
+                    compression_type = read_arbitary(pb);
+                    av_log (s, AV_LOG_INFO, "compression_type (element 0x83) set to 0x%08x\n", compression_type);
                     break;
                 case 0x85:
                     ea->num_samples = read_arbitary(pb);




More information about the ffmpeg-cvslog mailing list