summaryrefslogtreecommitdiff
path: root/firmware/mpeg.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/mpeg.c')
-rw-r--r--firmware/mpeg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/mpeg.c b/firmware/mpeg.c
index 0ed52ed6cb..82073a6405 100644
--- a/firmware/mpeg.c
+++ b/firmware/mpeg.c
@@ -482,8 +482,8 @@ static int lowest_watermark_level; /* Debug value to observe the buffer
482#ifdef HAVE_MAS3587F 482#ifdef HAVE_MAS3587F
483static bool is_recording; /* We are recording */ 483static bool is_recording; /* We are recording */
484static bool stop_pending; 484static bool stop_pending;
485static unsigned long record_start_frame; /* Frame number where 485unsigned long record_start_frame; /* Frame number where
486 recording started */ 486 recording started */
487static bool saving; /* We are saving the buffer to disk */ 487static bool saving; /* We are saving the buffer to disk */
488#endif 488#endif
489 489
@@ -2187,7 +2187,7 @@ unsigned long mpeg_num_recorded_frames(void)
2187 { 2187 {
2188 /* Read the current frame */ 2188 /* Read the current frame */
2189 mas_readmem(MAS_BANK_D0, 0xfd0, &val, 1); 2189 mas_readmem(MAS_BANK_D0, 0xfd0, &val, 1);
2190 2190
2191 return val - record_start_frame; 2191 return val - record_start_frame;
2192 } 2192 }
2193 else 2193 else