01-ffmpeg.patch 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. diff -ur motion-3.2.5.1-old/motion.c motion-3.2.5.1/motion.c
  2. --- motion-3.2.5.1-old/motion.c 2006-03-17 10:05:13.490000000 -0800
  3. +++ motion-3.2.5.1/motion.c 2006-03-17 10:03:38.020000000 -0800
  4. @@ -1246,10 +1246,10 @@
  5. * Note: Negative value means SIGALRM snaps are enabled
  6. * httpd-control snaps are always enabled.
  7. */
  8. -
  9. +#ifdef HAVE_FFMPEG
  10. /* time_current_frame is used both for snapshot and timelapse features */
  11. time_current_frame = cnt->currenttime;
  12. -
  13. +
  14. if ( (cnt->conf.snapshot_interval > 0 && cnt->shots == 0 &&
  15. time_current_frame % cnt->conf.snapshot_interval <= time_last_frame % cnt->conf.snapshot_interval) ||
  16. cnt->snapshot) {
  17. @@ -1257,7 +1257,7 @@
  18. cnt->snapshot = 0;
  19. }
  20. -
  21. +#endif /* HAVE_FFMPEG */
  22. /***** MOTION LOOP - TIMELAPSE FEATURE SECTION *****/
  23. #ifdef HAVE_FFMPEG
  24. @@ -1331,10 +1331,9 @@
  25. event(cnt, EVENT_TIMELAPSEEND, NULL, NULL, NULL, cnt->currenttime_tm);
  26. -#endif /* HAVE_FFMPEG */
  27. time_last_frame = time_current_frame;
  28. -
  29. +#endif /* HAVE_FFMPEG */
  30. /***** MOTION LOOP - VIDEO LOOPBACK SECTION *****/
  31. Only in motion-3.2.5.1-old/: motion.c.orig