"TEARDOWN %s RTSP/1.0\n",
"TEARDOWN %s RTSP/1.0\r\n",
static int rtsp_read_close(AVFormatContext *s){    RTSPState *rt = s->priv_data;    AVStream *st;    RTSPStream *rtsp_st;    RTSPHeader reply1, *reply = &reply1;    int i;    char cmd[1024];    /* NOTE: it is valid to flush the buffer here */    if (rt->protocol == RTSP_PROTOCOL_RTP_TCP) {        url_fclose(&rt->rtsp_gb);    }    snprintf(cmd, sizeof(cmd),              "TEARDOWN %s RTSP/1.0\n",             s->filename);    rtsp_send_cmd(s, cmd, reply, NULL);    if (ff_rtsp_callback) {        ff_rtsp_callback(RTSP_ACTION_CLIENT_TEARDOWN, rt->session_id,                          NULL, 0, NULL);    }    for(i=0;i<s->nb_streams;i++) {        st = s->streams[i];        rtsp_st = st->priv_data;        if (rtsp_st) {            if (rtsp_st->ic)                av_close_input_file(rtsp_st->ic);        }        av_free(rtsp_st);    }    url_close(rt->rtsp_hd);    return 0;}