1 |
commit: 203593d367fd5ead20bff969166c4c28a39300bb |
2 |
Author: Ilya Tumaykin <itumaykin <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed Apr 27 12:26:01 2016 +0000 |
4 |
Commit: Ian Delaney <idella4 <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Apr 27 15:26:00 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=203593d3 |
7 |
|
8 |
media-video/mpv: revbump to 0.17.0-r3 |
9 |
|
10 |
Accidentally forgotten in 0.17.0-r1 revbump. |
11 |
Should be the last revbump for 0.17.0. |
12 |
|
13 |
Closes: https://github.com/gentoo/gentoo/pull/1362 |
14 |
Package-Manager: portage-2.2.28 |
15 |
|
16 |
Signed-off-by: Ian Delaney <idella4 <AT> gentoo.org> |
17 |
|
18 |
.../0.17.0/mpv-0.17.0-fix-timestamp-resets.patch | 27 ++++++++++++++++++++++ |
19 |
.../{mpv-0.17.0-r2.ebuild => mpv-0.17.0-r3.ebuild} | 1 + |
20 |
2 files changed, 28 insertions(+) |
21 |
|
22 |
diff --git a/media-video/mpv/files/0.17.0/mpv-0.17.0-fix-timestamp-resets.patch b/media-video/mpv/files/0.17.0/mpv-0.17.0-fix-timestamp-resets.patch |
23 |
new file mode 100644 |
24 |
index 0000000..ecebb1f |
25 |
--- /dev/null |
26 |
+++ b/media-video/mpv/files/0.17.0/mpv-0.17.0-fix-timestamp-resets.patch |
27 |
@@ -0,0 +1,27 @@ |
28 |
+commit 5f97bd42234ecc6fca7e06b9831318d67e865c8b |
29 |
+Author: wm4 <wm4@nowhere> |
30 |
+Date: Sun Apr 24 18:24:46 2016 +0200 |
31 |
+ |
32 |
+player: assume video forwards timestamps jumps only with some formats |
33 |
+ |
34 |
+Another crappy fix for timestamp reset issues. This time, we try to fix |
35 |
+files which have very weird but legitimate frame durations, such as |
36 |
+cdgraphics. It can have many short frames, but once in a while there are |
37 |
+potentially very long frames. |
38 |
+ |
39 |
+Fixes #3027. |
40 |
+--- |
41 |
+ |
42 |
+diff --git a/player/video.c b/player/video.c |
43 |
+index 7610c12..2714060 100644 |
44 |
+--- a/player/video.c |
45 |
++++ b/player/video.c |
46 |
+@@ -685,7 +685,7 @@ static void handle_new_frame(struct MPContext *mpctx) |
47 |
+ double pts = mpctx->next_frames[0]->pts; |
48 |
+ if (mpctx->video_pts != MP_NOPTS_VALUE) { |
49 |
+ frame_time = pts - mpctx->video_pts; |
50 |
+- double tolerance = 15; |
51 |
++ double tolerance = mpctx->demuxer->ts_resets_possible ? 5 : 1e4; |
52 |
+ if (frame_time <= 0 || frame_time >= tolerance) { |
53 |
+ // Assume a discontinuity. |
54 |
+ MP_WARN(mpctx, "Invalid video timestamp: %f -> %f\n", |
55 |
|
56 |
diff --git a/media-video/mpv/mpv-0.17.0-r2.ebuild b/media-video/mpv/mpv-0.17.0-r3.ebuild |
57 |
similarity index 99% |
58 |
rename from media-video/mpv/mpv-0.17.0-r2.ebuild |
59 |
rename to media-video/mpv/mpv-0.17.0-r3.ebuild |
60 |
index 6d56557..247d418 100644 |
61 |
--- a/media-video/mpv/mpv-0.17.0-r2.ebuild |
62 |
+++ b/media-video/mpv/mpv-0.17.0-r3.ebuild |
63 |
@@ -137,6 +137,7 @@ PATCHES=( |
64 |
"${FILESDIR}/${PV}/${P}-fix-hwdec-fallback.patch" |
65 |
"${FILESDIR}/${PV}/${P}-fix-relative-seeking-with-coverart.patch" |
66 |
"${FILESDIR}/${PV}/${P}-fix-unselecting-video-track.patch" |
67 |
+ "${FILESDIR}/${PV}/${P}-fix-timestamp-resets.patch" |
68 |
"${FILESDIR}/${PV}/${P}-fix-video-frame-info-memleak.patch" |
69 |
) |