Merge commit '647d655d19c38e9716328e4787199149097d6089'
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 18 Sep 2013 09:00:47 +0000 (11:00 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 18 Sep 2013 09:00:51 +0000 (11:00 +0200)
* commit '647d655d19c38e9716328e4787199149097d6089':
  rtmpproto: Consistently use the right prev_pkt array

Merged-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/rtmpproto.c

index aac3c33..eaed3ea 100644 (file)
@@ -403,7 +403,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);