OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6af3544
)
rtmp: Clean up properly if the handshake failed
author
Martin Storsjö
<martin@martin.st>
Thu, 1 Dec 2011 09:34:06 +0000
(11:34 +0200)
committer
Martin Storsjö
<martin@martin.st>
Thu, 1 Dec 2011 11:47:25 +0000
(13:47 +0200)
This prevents memory leaks if this function returns an error.
Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/rtmpproto.c
patch
|
blob
|
history
diff --git
a/libavformat/rtmpproto.c
b/libavformat/rtmpproto.c
index
37c3d95
..
979c5b6
100644
(file)
--- a/
libavformat/rtmpproto.c
+++ b/
libavformat/rtmpproto.c
@@
-826,7
+826,7
@@
static int rtmp_open(URLContext *s, const char *uri, int flags)
rt->state = STATE_START;
if (rtmp_handshake(s, rt))
-
return -1
;
+
goto fail
;
rt->chunk_size = 128;
rt->state = STATE_HANDSHAKED;