[FFmpeg-cvslog] rtmpproto: Consistently use the right prev_pkt array
Martin Storsjö
git at videolan.org
Wed Sep 18 11:08:28 CEST 2013
ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Tue Sep 17 16:53:11 2013 +0300| [647d655d19c38e9716328e4787199149097d6089] | committer: Martin Storsjö
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 at martin.st>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=647d655d19c38e9716328e4787199149097d6089
---
libavformat/rtmpproto.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
More information about the ffmpeg-cvslog
mailing list