diff options
author | wm4 <wm4@nowhere> | 2013-07-08 23:18:31 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-07-10 02:00:46 +0200 |
commit | 32ad3138445dbf4ac16199ced2ad239a1a8c4e3f (patch) | |
tree | 66fabc1653a6666c213c41dfca292c0e63e7c046 /demux/demux.c | |
parent | 9bb7935ce186d55aaaafd708e7559345082ecabc (diff) | |
download | mpv-32ad3138445dbf4ac16199ced2ad239a1a8c4e3f.tar.bz2 mpv-32ad3138445dbf4ac16199ced2ad239a1a8c4e3f.tar.xz |
demux: remove some more minor unused things
Diffstat (limited to 'demux/demux.c')
-rw-r--r-- | demux/demux.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/demux/demux.c b/demux/demux.c index c21e249dca..b143c702c0 100644 --- a/demux/demux.c +++ b/demux/demux.c @@ -197,8 +197,6 @@ struct demux_packet *demux_copy_packet(struct demux_packet *dp) new->pts = dp->pts; new->duration = dp->duration; new->stream_pts = dp->stream_pts; - new->pos = dp->pos; - new->keyframe = dp->keyframe; return new; } @@ -243,11 +241,9 @@ static demuxer_t *new_demuxer(struct MPOpts *opts, stream_t *stream, int type, struct demuxer *d = talloc_zero(NULL, struct demuxer); d->stream = stream; d->stream_pts = MP_NOPTS_VALUE; - d->reference_clock = MP_NOPTS_VALUE; d->movi_start = stream->start_pos; d->movi_end = stream->end_pos; d->seekable = 1; - d->synced = 0; d->filepos = -1; d->audio = new_demuxer_stream(d, STREAM_AUDIO); d->video = new_demuxer_stream(d, STREAM_VIDEO); @@ -475,9 +471,6 @@ int ds_fill_buffer(demux_stream_t *ds) ds->buffer = p->buffer; ds->buffer_pos = 0; ds->buffer_size = p->len; - ds->pos = p->pos; - ds->dpos += p->len; // !!! - ++ds->pack_no; if (p->pts != MP_NOPTS_VALUE) { ds->pts = p->pts; ds->pts_bytes = 0; @@ -485,7 +478,6 @@ int ds_fill_buffer(demux_stream_t *ds) ds->pts_bytes += p->len; // !!! if (p->stream_pts != MP_NOPTS_VALUE) demux->stream_pts = p->stream_pts; - ds->keyframe = p->keyframe; // unlink packet: ds->bytes -= p->len; ds->current = p; |