diff mbox

[FFmpeg-devel] fix infinite loop for ff_rtsp_connect when failure of connection after redirection

Message ID CA+fTBodWmfhDXSMsE=WfBdyRyJxyiVv-Q6joknbPT=-1o1YdWg@mail.gmail.com
State New
Headers show

Commit Message

tianhu yang Dec. 18, 2018, 9:26 p.m. UTC
---
 libavformat/rtsp.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Michael Niedermayer Dec. 19, 2018, 6:51 p.m. UTC | #1
On Tue, Dec 18, 2018 at 01:26:35PM -0800, tianhu yang wrote:
> ---
>  libavformat/rtsp.c | 1 +
>  1 file changed, 1 insertion(+)

how can the bug be reproduced ?

thx

[...]
diff mbox

Patch

diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index ceb770a3a4..af3e112152 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -1923,6 +1923,7 @@  redirect:
         av_log(s, AV_LOG_INFO, "Status %d: Redirecting to %s\n",
                reply->status_code,
                s->url);
+        reply->status_code = 0;
         goto redirect;
     }
  fail2: