From f21c263c8979aa8a71c1c10909efb991679045c1 Mon Sep 17 00:00:00 2001 From: kyh96403 Date: Wed, 16 Apr 2014 10:01:34 +0900 Subject: [PATCH] avformat/rtmppkt: Fix random crash Fixes Ticket3564 Signed-off-by: Michael Niedermayer --- libavformat/rtmppkt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/rtmppkt.c b/libavformat/rtmppkt.c index cbd09f23be..65d5dd9d57 100644 --- a/libavformat/rtmppkt.c +++ b/libavformat/rtmppkt.c @@ -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); }