diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2007-10-18 22:47:56 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2007-10-18 22:47:56 +0000 |
commit | e5d34ab6d0e4d931f25d6c30dd9d648ea261addc (patch) | |
tree | 8673d2296d46a48df1e259b30601e335be1a3066 /libavformat | |
parent | 97e5dcc0f3415e1d44452bd87991a11a58252951 (diff) | |
download | ffmpeg-e5d34ab6d0e4d931f25d6c30dd9d648ea261addc.tar.gz |
make compression_type a function local var instead of a context var
Originally committed as revision 10796 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/electronicarts.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/electronicarts.c b/libavformat/electronicarts.c index 63920198bf..3465f1cd72 100644 --- a/libavformat/electronicarts.c +++ b/libavformat/electronicarts.c @@ -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(AVFormatContext *s) 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(AVFormatContext *s) 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); |