diff options
author | Martin Storsjö <martin@martin.st> | 2013-09-17 16:53:11 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2013-09-17 20:09:24 +0300 |
commit | 647d655d19c38e9716328e4787199149097d6089 (patch) | |
tree | b5082fb5a0c80cd0d62754041679aec2e8650ca9 | |
parent | 0d3784396b736374a61fea26268febdabd803a59 (diff) | |
download | ffmpeg-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>
-rw-r--r-- | libavformat/rtmpproto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c index e9814a3a28..1aff0c8e81 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); |