projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d37843
)
rtmpproto: Consistently use the right prev_pkt array
author
Martin Storsjö
<martin@martin.st>
Tue, 17 Sep 2013 13:53:11 +0000
(16:53 +0300)
committer
Martin Storsjö
<martin@martin.st>
Tue, 17 Sep 2013 17:09:24 +0000
(20:09 +0300)
prev_pkt[0] is used for input packets, while prev_pkt[1] is
used for output.
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
e9814a3
..
1aff0c8
100644
(file)
--- a/
libavformat/rtmpproto.c
+++ b/
libavformat/rtmpproto.c
@@
-406,7
+406,7
@@
static int read_connect(URLContext *s, RTMPContext *rt)
GetByteContext gbc;
if ((ret = ff_rtmp_packet_read(rt->stream, &pkt, rt->in_chunk_size,
- rt->prev_pkt[
1
])) < 0)
+ rt->prev_pkt[
0
])) < 0)
return ret;
cp = pkt.data;
bytestream2_init(&gbc, cp, pkt.size);