/* Process SEAD sound header return 1 if success, 0 if invalid format, otherwise AVERROR_xxx  */
static int process_audio_header_sead(AVFormatContext *s)
/* Process SEAD sound header return 1 if success, 0 if invalid format, otherwise AVERROR_xxx  */
static int process_audio_header_sead(AVFormatContext *s)
{
    EaDemuxContext *ea = s->priv_data;
    ByteIOContext *pb = s->pb;
    ea->sample_rate  = get_le32(pb);
    ea->bytes        = get_le32(pb);
    ea->num_channels = get_le32(pb);
    ea->audio_codec  = CODEC_ID_ADPCM_IMA_EA_SEAD;
    return 1;
}