ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinha...@gmail.com> | 
Mon Apr 20 03:31:56 2020 +0200| [87b056e6af0ccebc6813c54c88b5eb78ac06faf2] | 
committer: Andreas Rheinhardt

avformat/rtsp: Don't free uninitialized AVBPrint

Fixes Coverity ID 1462307.

Reviewed-by: Marton Balint <c...@passwd.hu>
Reviewed-by: Ross Nicholson <phunkyf...@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinha...@gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=87b056e6af0ccebc6813c54c88b5eb78ac06faf2
---

 libavformat/rtsp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index 49f7644fab..0a6462000d 100644
--- a/libavformat/rtsp.c
+++ b/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);

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to