diff options
author | wm4 <wm4@nowhere> | 2014-07-02 00:32:46 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-07-02 00:32:46 +0200 |
commit | 9fee8fd3b3b319908861d8f41c4342d746aecc04 (patch) | |
tree | 749074abf2fff2fc4bf19ad73da6d887e0e1e5e6 | |
parent | bb131f4c669c0fcfac325e2d0a6676c95bb425c7 (diff) | |
download | mpv-9fee8fd3b3b319908861d8f41c4342d746aecc04.tar.bz2 mpv-9fee8fd3b3b319908861d8f41c4342d746aecc04.tar.xz |
demux: drop AVI special code
I'm pretty sure libavformat does this automatically, and we don't have
other demuxers where this could happen.
Still, slightly "risky" - so let's see.
-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 541c5c3573..2c47bcefe3 100644 --- a/demux/demux.c +++ b/demux/demux.c @@ -297,14 +297,6 @@ int demuxer_add_packet(demuxer_t *demuxer, struct sh_stream *stream, return 0; } - if (stream->type == STREAM_VIDEO && !dp->len) { - /* Video packets with size 0 are assumed to not correspond to frames, - * but to indicate the absence of a frame in formats like AVI - * that must have packets at fixed timestamp intervals. */ - talloc_free(dp); - return 1; - } - dp->stream = stream->index; dp->next = NULL; |