summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2014-02-08 11:16:02 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2014-02-08 11:16:02 +0100
commitbfb9c8fddd0cf8a7c35271d58a37da4444e8fecc (patch)
treeac2885ddf92a6c04fa59de14e27c13359036544b
parent0402ce9b8e7eba020fcfd1e60e450bf523ea0cf2 (diff)
downloadvdr-bfb9c8fddd0cf8a7c35271d58a37da4444e8fecc.tar.gz
vdr-bfb9c8fddd0cf8a7c35271d58a37da4444e8fecc.tar.bz2
Fixed numbering frames (cont'd)
-rw-r--r--recording.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/recording.c b/recording.c
index 3a589431..5da54940 100644
--- a/recording.c
+++ b/recording.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: recording.c 3.15 2014/02/05 10:08:41 kls Exp $
+ * $Id: recording.c 3.16 2014/02/08 11:16:02 kls Exp $
*/
#include "recording.h"
@@ -2933,7 +2933,7 @@ cString IndexToHMSF(int Index, bool WithFrame, double FramesPerSecond)
int HMSFToIndex(const char *HMSF, double FramesPerSecond)
{
- int h, m, s, f = 1;
+ int h, m, s, f = 0;
int n = sscanf(HMSF, "%d:%d:%d.%d", &h, &m, &s, &f);
if (n == 1)
return h; // plain frame number