Mercurial > mplayer.hg
changeset 31250:a7c91e121d79
Default to -correct-pts off if -fps was given, since -fps has no effect
(and doesn't really make sense) with correct-pts mode.
author | reimar |
---|---|
date | Fri, 04 Jun 2010 17:11:56 +0000 |
parents | 868e5c480af6 |
children | ff83a7122367 |
files | libmpdemux/demuxer.c |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demuxer.c Fri Jun 04 17:10:38 2010 +0000 +++ b/libmpdemux/demuxer.c Fri Jun 04 17:11:56 2010 +0000 @@ -30,6 +30,7 @@ #include "mp_msg.h" #include "help_mp.h" #include "m_config.h" +#include "mplayer.h" #include "libvo/fastmemcpy.h" @@ -252,8 +253,6 @@ return d; } -extern int dvdsub_id; - sh_sub_t *new_sh_sub_sid(demuxer_t *demuxer, int id, int sid) { if (id > MAX_S_STREAMS - 1 || id < 0) { @@ -1196,7 +1195,7 @@ correct_pts = user_correct_pts; if (correct_pts < 0) - correct_pts = demux_control(res, DEMUXER_CTRL_CORRECT_PTS, NULL) + correct_pts = !force_fps && demux_control(res, DEMUXER_CTRL_CORRECT_PTS, NULL) == DEMUXER_CTRL_OK; return res; }