Merge commit '647d655d19c38e9716328e4787199149097d6089'
[ffmpeg.git] / 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);