void ff_free_parser_state(AVFormatContext *s, AVParserState *state)

{

    int i;

    AVParserStreamState *ss;



    if (!state)

        return;



    for (i = 0; i < state->nb_streams; i++) {

        ss = &state->stream_states[i];

        if (ss->parser)

            av_parser_close(ss->parser);

        av_free_packet(&ss->cur_pkt);

    }



    free_packet_list(state->packet_buffer);

    free_packet_list(state->raw_packet_buffer);



    av_free(state->stream_states);

    av_free(state);

}

void ff_free_parser_state(AVFormatContext *s, AVParserState *state)

{

    int i;

    AVParserStreamState *ss;



    if (!state)

        return;



    for (i = 0; i < state->nb_streams; i++) {

        ss = &state->stream_states[i];

        if (ss->parser)

            av_parser_close(ss->parser);

        av_free_packet(&ss->cur_pkt);

    }



    free_packet_list(state->packet_buffer);

    free_packet_list(state->raw_packet_buffer);



    av_free(state->stream_states);

    av_free(state);

}

void FUNC_0(AVFormatContext *VAR_0, AVParserState *VAR_1)

{

    int VAR_2;

    AVParserStreamState *ss;



    if (!VAR_1)

        return;



    for (VAR_2 = 0; VAR_2 < VAR_1->nb_streams; VAR_2++) {

        ss = &VAR_1->stream_states[VAR_2];

        if (ss->parser)

            av_parser_close(ss->parser);

        av_free_packet(&ss->cur_pkt);

    }



    free_packet_list(VAR_1->packet_buffer);

    free_packet_list(VAR_1->raw_packet_buffer);



    av_free(VAR_1->stream_states);

    av_free(VAR_1);

}

void FUNC_0(AVFormatContext *VAR_0, AVParserState *VAR_1)
{ int VAR_2; AVParserStreamState *ss; if (!VAR_1)
return; for (VAR_2 = 0; VAR_2 < VAR_1->nb_streams; VAR_2++) { ss = &VAR_1->stream_states[VAR_2]; if (ss->parser)
av_parser_close(ss->parser); av_free_packet(&ss->cur_pkt); } free_packet_list(VAR_1->packet_buffer); free_packet_list(VAR_1->raw_packet_buffer); av_free(VAR_1->stream_states); av_free(VAR_1); }