avformat/rtmppkt: Fix random crash

Fixes Ticket3564

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
kyh96403 2014-04-16 10:01:34 +09:00 committed by Michael Niedermayer
parent 1ba59b1cbe
commit f21c263c89

View 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);
}