static int wav_parse_fmt_tag(AVFormatContext *s, int64_t size, AVStream **st)

{

    AVIOContext *pb = s->pb;

    int ret;



    /* parse fmt header */

    *st = av_new_stream(s, 0);

    if (!*st)

        return AVERROR(ENOMEM);



    ff_get_wav_header(pb, (*st)->codec, size);

    if (ret < 0)

        return ret;

    (*st)->need_parsing = AVSTREAM_PARSE_FULL;



    av_set_pts_info(*st, 64, 1, (*st)->codec->sample_rate);



    return 0;

}

static int wav_parse_fmt_tag(AVFormatContext *s, int64_t size, AVStream **st)

{

    AVIOContext *pb = s->pb;

    int ret;



    

    *st = av_new_stream(s, 0);

    if (!*st)

        return AVERROR(ENOMEM);



    ff_get_wav_header(pb, (*st)->codec, size);

    if (ret < 0)

        return ret;

    (*st)->need_parsing = AVSTREAM_PARSE_FULL;



    av_set_pts_info(*st, 64, 1, (*st)->codec->sample_rate);



    return 0;

}

    ff_get_wav_header(pb, (*st)->codec, size);
static int FUNC_0(AVFormatContext *VAR_0, int64_t VAR_1, AVStream **VAR_2)

{

    AVIOContext *pb = VAR_0->pb;

    int VAR_3;



    

    *VAR_2 = av_new_stream(VAR_0, 0);

    if (!*VAR_2)

        return AVERROR(ENOMEM);



    ff_get_wav_header(pb, (*VAR_2)->codec, VAR_1);

    if (VAR_3 < 0)

        return VAR_3;

    (*VAR_2)->need_parsing = AVSTREAM_PARSE_FULL;



    av_set_pts_info(*VAR_2, 64, 1, (*VAR_2)->codec->sample_rate);



    return 0;

}

static int FUNC_0(AVFormatContext *VAR_0, int64_t VAR_1, AVStream **VAR_2)
{ AVIOContext *pb = VAR_0->pb; int VAR_3; *VAR_2 = av_new_stream(VAR_0, 0); if (!*VAR_2)
return AVERROR(ENOMEM); ff_get_wav_header(pb, (*VAR_2)->codec, VAR_1); if (VAR_3 < 0)
return VAR_3; (*VAR_2)->need_parsing = AVSTREAM_PARSE_FULL; av_set_pts_info(*VAR_2, 64, 1, (*VAR_2)->codec->sample_rate); return 0; }