summaryrefslogtreecommitdiffstats
path: root/libmpdemux
diff options
context:
space:
mode:
authornicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-12-04 22:08:11 +0000
committernicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-12-04 22:08:11 +0000
commite704821b759999057a9c7b1a8d7601fde3023ff1 (patch)
treecb40ce29fe08eb1d688c4e45fdd3df1dfd2af911 /libmpdemux
parenta176dc29b98c08ad58d86016626aef955c80b3b7 (diff)
downloadmpv-e704821b759999057a9c7b1a8d7601fde3023ff1.tar.bz2
mpv-e704821b759999057a9c7b1a8d7601fde3023ff1.tar.xz
disable telecining when it can't be applied
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21502 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r--libmpdemux/muxer_mpeg.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/libmpdemux/muxer_mpeg.c b/libmpdemux/muxer_mpeg.c
index 2b82d0a902..755d4c5ecd 100644
--- a/libmpdemux/muxer_mpeg.c
+++ b/libmpdemux/muxer_mpeg.c
@@ -2601,9 +2601,17 @@ int muxer_init_muxer_mpeg(muxer_t *muxer){
tfps *= 2;
}
+ if(((tfps - sfps)>>1) > sfps)
+ {
+ mp_msg(MSGT_MUXER, MSGL_ERR, "ERROR! Framerate increment must be <= 1.5, telecining disabled\n");
+ conf_telecine = 0;
+ }
+ else
+ {
generate_flags(sfps, tfps);
conf_telecine = TELECINE_DGPULLDOWN;
conf_vframerate = conf_telecine_dest;
+ }
}
if(conf_vframerate)
@@ -2638,7 +2646,12 @@ int muxer_init_muxer_mpeg(muxer_t *muxer){
priv->vframerate = FRAMERATE_60;
break;
default:
+ {
mp_msg(MSGT_MUXER, MSGL_ERR, "WRONG FPS: %d/1000, ignoring\n", fps);
+ if(conf_telecine)
+ mp_msg(MSGT_MUXER, MSGL_ERR, "DISABLED TELECINING\n");
+ conf_telecine = 0;
+ }
}
}