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>
pull/336/head
Andreas Rheinhardt 5 years ago
parent a97281699b
commit 87b056e6af
  1. 2
      libavformat/rtsp.c

@ -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);

Loading…
Cancel
Save