You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
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>
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user