Skip to content

Commit

Permalink
fixed: playing mpegts over rtsp caused ffmpeg to read uninitialized s…
Browse files Browse the repository at this point in the history
…tack values

This is an amendment to cdfab91 the memleak
fix for mpegts. It's questionable if that change is needed. Since
the main issue it was for has been fixed correctly. However it
doesn't hurt to avoid potential memleaks this way.
  • Loading branch information
Joakim Plate committed Mar 7, 2011
1 parent 912bb84 commit 8ec66e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/ffmpeg/libavformat/mpegts.c
Expand Up @@ -1879,6 +1879,7 @@ int ff_mpegts_parse_packet(MpegTSContext *ts, AVPacket *pkt,

len1 = len;
ts->pkt = pkt;
ts->pkt->data = NULL;
ts->stop_parse = 0;
for(;;) {
if (ts->stop_parse>0)
Expand Down

0 comments on commit 8ec66e2

Please sign in to comment.