summaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2013-09-17 16:53:11 +0300
committerMartin Storsjö <martin@martin.st>2013-09-17 20:09:24 +0300
commit647d655d19c38e9716328e4787199149097d6089 (patch)
treeb5082fb5a0c80cd0d62754041679aec2e8650ca9 /libavformat
parent0d3784396b736374a61fea26268febdabd803a59 (diff)
downloadffmpeg-streaming-647d655d19c38e9716328e4787199149097d6089.zip
ffmpeg-streaming-647d655d19c38e9716328e4787199149097d6089.tar.gz
rtmpproto: Consistently use the right prev_pkt array
prev_pkt[0] is used for input packets, while prev_pkt[1] is used for output. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/rtmpproto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c
index e9814a3..1aff0c8 100644
--- 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);
OpenPOWER on IntegriCloud