summaryrefslogtreecommitdiff
path: root/media-video/mpv/files/mpv-0.16.0-fix-bitrate-calculation.patch
diff options
context:
space:
mode:
Diffstat (limited to 'media-video/mpv/files/mpv-0.16.0-fix-bitrate-calculation.patch')
-rw-r--r--media-video/mpv/files/mpv-0.16.0-fix-bitrate-calculation.patch31
1 files changed, 0 insertions, 31 deletions
diff --git a/media-video/mpv/files/mpv-0.16.0-fix-bitrate-calculation.patch b/media-video/mpv/files/mpv-0.16.0-fix-bitrate-calculation.patch
deleted file mode 100644
index 2515b3ae7ee..00000000000
--- a/media-video/mpv/files/mpv-0.16.0-fix-bitrate-calculation.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-commit 5c1fe2a4f3e559a0c6a010e48b0c225d01c1cd0a
-Author: wm4 <wm4@nowhere>
-Date: Sat Mar 5 12:48:58 2016 +0100
-
- demux: delay bitrate calculation on packets with unknown timestamps
-
- Commit 503c6f7f essentially removed timestamps from "laces" (Block sub-
- divisions), which means many audio packets will have no timestamp.
- There's no reason why bitrate calculation can't just delayed to a point
- when the next timestamp is known.
-
- Fixes #2903 (no audio bitrate with mkv files).
-
-diff --git a/demux/demux.c b/demux/demux.c
-index bd3211a..a7241d9 100644
---- a/demux/demux.c
-+++ b/demux/demux.c
-@@ -681,11 +681,11 @@ static struct demux_packet *dequeue_packet(struct demux_stream *ds)
- if (ts != MP_NOPTS_VALUE)
- ds->base_ts = ts;
-
-- if (pkt->keyframe) {
-+ if (pkt->keyframe && ts != MP_NOPTS_VALUE) {
- // Update bitrate - only at keyframe points, because we use the
- // (possibly) reordered packet timestamps instead of realtime.
- double d = ts - ds->last_br_ts;
-- if (ts == MP_NOPTS_VALUE || ds->last_br_ts == MP_NOPTS_VALUE || d < 0) {
-+ if (ds->last_br_ts == MP_NOPTS_VALUE || d < 0) {
- ds->bitrate = -1;
- ds->last_br_ts = ts;
- ds->last_br_bytes = 0;