diff options
| author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-04-14 18:44:01 +0200 |
|---|---|---|
| committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-04-14 18:44:01 +0200 |
| commit | 2cfbc00f7a0212f4df2bf4cfadf940213e1d4ae0 (patch) | |
| tree | 0e22a3591df8fe2582673851fabe458d4c7bab17 /src/demuxers | |
| parent | 52f0b652d94463e622fbfcdde5b4f6bf01eed681 (diff) | |
| download | xine-lib-2cfbc00f7a0212f4df2bf4cfadf940213e1d4ae0.tar.gz xine-lib-2cfbc00f7a0212f4df2bf4cfadf940213e1d4ae0.tar.bz2 | |
Use memset instead of loops to initialise arrays to zero.
Diffstat (limited to 'src/demuxers')
| -rw-r--r-- | src/demuxers/demux_ts.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/demuxers/demux_ts.c b/src/demuxers/demux_ts.c index aea0c8ca1..83b2d982c 100644 --- a/src/demuxers/demux_ts.c +++ b/src/demuxers/demux_ts.c @@ -2227,9 +2227,7 @@ static demux_plugin_t *open_plugin (demux_class_t *class_gen, this->status = DEMUX_FINISHED; #ifdef TS_READ_STATS - for (i=0; i<=NPKT_PER_READ; i++) { - this->rstat[i] = 0; - } + memset(this-rstat, 0, sizeof(*this->rstat)*NPKT_PER_READ); #endif /* DVBSUB */ |
