Revision 42f97696 libavformat/rtsp.c

View differences:

libavformat/rtsp.c
498 498
                } else {
499 499
                    url_fclose(rtpctx->pb);
500 500
                }
501
                av_metadata_free(&rtpctx->streams[0]->metadata);
502
                av_metadata_free(&rtpctx->metadata);
503
                av_free(rtpctx->streams[0]->codec->extradata);
504
                av_free(rtpctx->streams[0]->codec);
505
                av_free(rtpctx->streams[0]->info);
506
                av_free(rtpctx->streams[0]);
507
                av_free(rtpctx);
501
                avformat_free_context(rtpctx);
508 502
            } else if (rt->transport == RTSP_TRANSPORT_RDT && CONFIG_RTPDEC)
509 503
                ff_rdt_parse_close(rtsp_st->transport_priv);
510 504
            else if (CONFIG_RTPDEC)

Also available in: Unified diff