Browse Source

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>
tags/n2.1
Martin Storsjö 11 years ago
parent
commit
647d655d19
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/rtmpproto.c

+ 1
- 1
libavformat/rtmpproto.c View File

@@ -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);


Loading…
Cancel
Save