summaryrefslogtreecommitdiffstats
path: root/mencoder.c
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2009-01-14 02:51:24 +0200
committerUoti Urpala <uau@glyph.nonexistent.invalid>2009-01-14 03:42:05 +0200
commit38a76f7fdf5c03bc49072b693d7c53b343f2994a (patch)
tree0e8c7e419f8bbfe9ad55beba0fd17b3de94fb386 /mencoder.c
parent1f782eb802e9774bc53103e935eb673c283cf0aa (diff)
downloadmpv-38a76f7fdf5c03bc49072b693d7c53b343f2994a.tar.bz2
mpv-38a76f7fdf5c03bc49072b693d7c53b343f2994a.tar.xz
core: Better -nocorrect-pts pause and filter-added frames handling
Rewrite the -nocorrect-pts frame creation code. The new version always updates the visible frame when seeking while pausing, and supports filter-added frames. It can not time those properly though. Now the handling of filter-added frames in MPlayer always uses the new method independently of the value of correct-pts but MEncoder still expects the old behavior. Add a global variable that is set under MEncoder only and change the filters to choose behavior based on that instead of the correct_pts option.
Diffstat (limited to 'mencoder.c')
-rw-r--r--mencoder.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mencoder.c b/mencoder.c
index 052cfdbcde..52edeeac88 100644
--- a/mencoder.c
+++ b/mencoder.c
@@ -96,6 +96,7 @@
MPOpts opts;
struct osd_state *osd;
+const int under_mencoder = 1;
int vo_doublebuffering=0;
int vo_directrendering=0;
int forced_subs_only=0;