diff libmpdemux/tv.c @ 3285:bd7bff4cb453

add tv fps support
author alex
date Mon, 03 Dec 2001 16:49:55 +0000
parents 702e399a4b3e
children a73b02e35e70
line wrap: on
line diff
--- a/libmpdemux/tv.c	Mon Dec 03 16:38:40 2001 +0000
+++ b/libmpdemux/tv.c	Mon Dec 03 16:49:55 2001 +0000
@@ -44,7 +44,7 @@
 int tv_param_height = -1;
 int tv_param_input = 0; /* used in v4l and bttv */
 char *tv_param_outfmt = "yv12";
-
+float tv_param_fps = -1.0;
 
 /* ================== DEMUX_TV ===================== */
 /*
@@ -251,7 +251,9 @@
     {
 	if (funcs->control(tvh->priv, TVI_CONTROL_VID_GET_FPS, &sh_video->fps) != TVI_CONTROL_TRUE)
 	    sh_video->fps = 25.0f; /* on PAL */
-    }
+    }    
+    if (tv_param_fps != -1.0f)
+	sh_video->fps = tv_param_fps;
     sh_video->frametime = 1.0f/sh_video->fps;
 
     /* set width */