1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-01 04:31:39 +00:00

demux_ts: avoid using unitialized data

Add memset to avoid using uninitialized data with sample in bug 1280.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32693 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2010-12-11 22:19:46 +00:00 committed by Uoti Urpala
parent 3474d7e1b5
commit 68c262c6c4

View File

@ -2760,6 +2760,7 @@ static int ts_parse(demuxer_t *demuxer , ES_stream_t *es, unsigned char *packet,
TS_stream_info *si;
memset(es, 0, sizeof(*es));
while(1)
{
bad = ts_error = 0;