[FFmpeg-cvslog] avformat/rtmppkt: Fix random crash

kyh96403 git at videolan.org
Wed Apr 23 15:44:20 CEST 2014


ffmpeg | branch: master | kyh96403 <kyh96403 at hanmail.net> | Wed Apr 16 10:01:34 2014 +0900| [f21c263c8979aa8a71c1c10909efb991679045c1] | committer: Michael Niedermayer

avformat/rtmppkt: Fix random crash

Fixes Ticket3564

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f21c263c8979aa8a71c1c10909efb991679045c1
---

 libavformat/rtmppkt.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/rtmppkt.c b/libavformat/rtmppkt.c
index cbd09f2..65d5dd9 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);
     }
 



More information about the ffmpeg-cvslog mailing list