[FFmpeg-cvslog] avformat/rtmpproto: Do not fail when the length cannot be determined for live streams

Michael Niedermayer git at videolan.org
Tue Nov 4 00:42:54 CET 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Nov  4 00:35:32 2014 +0100| [09711545f5d256bd3ac77004d123dae36c5db8f9] | committer: Michael Niedermayer

avformat/rtmpproto: Do not fail when the length cannot be determined for live streams

Fixes Ticket4071

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavformat/rtmpproto.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c
index 72d6341..b11c883 100644
--- a/libavformat/rtmpproto.c
+++ b/libavformat/rtmpproto.c
@@ -1822,6 +1822,11 @@ static int handle_invoke_error(URLContext *s, RTMPPacket *pkt)
             /* Gracefully ignore Adobe-specific historical artifact errors. */
             level = AV_LOG_WARNING;
             ret = 0;
+        } else if (rt->live &&
+                   tracked_method &&
+                   !strcmp(tracked_method, "getStreamLength")) {
+            level = AV_LOG_DEBUG;
+            ret = 0;
         } else if (tracked_method && !strcmp(tracked_method, "connect")) {
             ret = handle_connect_error(s, tmpstr);
             if (!ret) {



More information about the ffmpeg-cvslog mailing list