Commit e5d34ab6 authored by Aurelien Jacobs's avatar Aurelien Jacobs

make compression_type a function local var instead of a context var

Originally committed as revision 10796 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 97e5dcc0
...@@ -54,7 +54,6 @@ typedef struct EaDemuxContext { ...@@ -54,7 +54,6 @@ typedef struct EaDemuxContext {
int num_channels; int num_channels;
int num_samples; int num_samples;
int compression_type;
} EaDemuxContext; } EaDemuxContext;
static uint32_t read_arbitary(ByteIOContext *pb) { static uint32_t read_arbitary(ByteIOContext *pb) {
...@@ -83,6 +82,7 @@ static int process_audio_header_elements(AVFormatContext *s) ...@@ -83,6 +82,7 @@ static int process_audio_header_elements(AVFormatContext *s)
int inHeader = 1; int inHeader = 1;
EaDemuxContext *ea = s->priv_data; EaDemuxContext *ea = s->priv_data;
ByteIOContext *pb = &s->pb; ByteIOContext *pb = &s->pb;
int compression_type;
ea->num_channels = 1; ea->num_channels = 1;
...@@ -105,8 +105,8 @@ static int process_audio_header_elements(AVFormatContext *s) ...@@ -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); av_log (s, AV_LOG_INFO, "num_channels (element 0x82) set to 0x%08x\n", ea->num_channels);
break; break;
case 0x83: case 0x83:
ea->compression_type = read_arbitary(pb); compression_type = read_arbitary(pb);
av_log (s, AV_LOG_INFO, "compression_type (element 0x83) set to 0x%08x\n", ea->compression_type); av_log (s, AV_LOG_INFO, "compression_type (element 0x83) set to 0x%08x\n", compression_type);
break; break;
case 0x85: case 0x85:
ea->num_samples = read_arbitary(pb); ea->num_samples = read_arbitary(pb);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment