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:
parent
a97281699b
commit
87b056e6af
@ -2567,8 +2567,8 @@ static int rtp_read_header(AVFormatContext *s)
|
|||||||
fail_nobuf:
|
fail_nobuf:
|
||||||
ret = AVERROR(ENOMEM);
|
ret = AVERROR(ENOMEM);
|
||||||
av_log(s, AV_LOG_ERROR, "rtp_read_header(): not enough buffer space for sdp-headers\n");
|
av_log(s, AV_LOG_ERROR, "rtp_read_header(): not enough buffer space for sdp-headers\n");
|
||||||
fail:
|
|
||||||
av_bprint_finalize(&sdp, NULL);
|
av_bprint_finalize(&sdp, NULL);
|
||||||
|
fail:
|
||||||
avcodec_parameters_free(&par);
|
avcodec_parameters_free(&par);
|
||||||
if (in)
|
if (in)
|
||||||
ffurl_close(in);
|
ffurl_close(in);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user