avformat/rtmppkt: Fix random crash
authorkyh96403 <kyh96403@hanmail.net>
Wed, 16 Apr 2014 01:01:34 +0000 (10:01 +0900)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 23 Apr 2014 13:10:42 +0000 (15:10 +0200)
Fixes Ticket3564

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/rtmppkt.c

index cbd09f2..65d5dd9 100644 (file)
@@ -273,6 +273,7 @@ static int rtmp_packet_read_one_chunk(URLContext *h, RTMPPacket *p,
        prev->data = p->data;
        prev->read = p->read;
        prev->offset = p->offset;
+       p->data      = NULL;
        return AVERROR(EAGAIN);
     }