From: Petri H. <phi...@us...> - 2013-11-07 11:46:17
|
# HG changeset patch # User Petri Hintukainen <phi...@us...> # Date 1383824556 -7200 # Node ID dc46b23f2fb4416edbbf5ed71602e8981bef5219 # Branch default # Parent 3ef1704b6d63cf5e426c5dbced19f6b566cace7d avformat: fix rtsp over http diff --git a/src/combined/ffmpeg/demux_avformat.c b/src/combined/ffmpeg/demux_avformat.c --- a/src/combined/ffmpeg/demux_avformat.c +++ b/src/combined/ffmpeg/demux_avformat.c @@ -162,6 +162,7 @@ } if (!strncmp(mrl, "rtsp+http", 9)) { av_dict_set(&options, "rtsp_transport", "http", 0); + real_mrl = strdup(mrl); memmove(real_mrl + 4, real_mrl + 9, strlen(real_mrl) - 9 + 1); } |