|
|
@ -422,17 +422,18 @@ static int ea_read_header(AVFormatContext *s, |
|
|
|
st->codec->height = ea->height; |
|
|
|
st->codec->height = ea->height; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (ea->audio_codec) { |
|
|
|
if (ea->num_channels <= 0) { |
|
|
|
if (ea->num_channels <= 0) { |
|
|
|
av_log(s, AV_LOG_WARNING, "Unsupported number of channels: %d\n", ea->num_channels); |
|
|
|
av_log(s, AV_LOG_WARNING, "Unsupported number of channels: %d\n", ea->num_channels); |
|
|
|
ea->audio_codec = 0; |
|
|
|
ea->audio_codec = 0; |
|
|
|
|
|
|
|
return 1; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (ea->sample_rate <= 0) { |
|
|
|
if (ea->sample_rate <= 0) { |
|
|
|
av_log(s, AV_LOG_ERROR, "Unsupported sample rate: %d\n", ea->sample_rate); |
|
|
|
av_log(s, AV_LOG_ERROR, "Unsupported sample rate: %d\n", ea->sample_rate); |
|
|
|
ea->audio_codec = 0; |
|
|
|
ea->audio_codec = 0; |
|
|
|
|
|
|
|
return 1; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (ea->audio_codec) { |
|
|
|
|
|
|
|
/* initialize the audio decoder stream */ |
|
|
|
/* initialize the audio decoder stream */ |
|
|
|
st = av_new_stream(s, 0); |
|
|
|
st = av_new_stream(s, 0); |
|
|
|
if (!st) |
|
|
|
if (!st) |
|
|
|