# HG changeset patch # User aurel # Date 1192747676 0 # Node ID 3b95556c8cd41b5776f43a31e366374941e32358 # Parent 9513cc77beb0e797d9b09ad0b32f97b3070a5ca2 make compression_type a function local var instead of a context var diff -r 9513cc77beb0 -r 3b95556c8cd4 electronicarts.c --- a/electronicarts.c Thu Oct 18 22:39:27 2007 +0000 +++ b/electronicarts.c Thu Oct 18 22:47:56 2007 +0000 @@ -54,7 +54,6 @@ int num_channels; int num_samples; - int compression_type; } EaDemuxContext; static uint32_t read_arbitary(ByteIOContext *pb) { @@ -83,6 +82,7 @@ int inHeader = 1; EaDemuxContext *ea = s->priv_data; ByteIOContext *pb = &s->pb; + int compression_type; ea->num_channels = 1; @@ -105,8 +105,8 @@ 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);