avformat/rtsp: Don't free uninitialized AVBPrint

Fixes Coverity ID 1462307.

Reviewed-by: Marton Balint <cus@passwd.hu>
Reviewed-by: Ross Nicholson <phunkyfish@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
Andreas Rheinhardt 2020-04-20 03:31:56 +02:00
parent a97281699b
commit 87b056e6af
1 changed files with 1 additions and 1 deletions

View File

@ -2567,8 +2567,8 @@ static int rtp_read_header(AVFormatContext *s)
fail_nobuf:
ret = AVERROR(ENOMEM);
av_log(s, AV_LOG_ERROR, "rtp_read_header(): not enough buffer space for sdp-headers\n");
fail:
av_bprint_finalize(&sdp, NULL);
fail:
avcodec_parameters_free(&par);
if (in)
ffurl_close(in);