update tcpdump to 3.9.8
[openwrt/svn-archive/archive.git] / multimedia / motion / patches / 001-ffmpeg.patch
1 diff -x .svn -ruN motion-3.2.8.old/motion.c motion-3.2.8/motion.c
2 --- motion-3.2.8.old/motion.c 2007-03-31 12:54:31.000000000 +0200
3 +++ motion-3.2.8/motion.c 2007-03-31 13:08:27.000000000 +0200
4 @@ -1282,6 +1282,7 @@
5 * httpd-control snaps are always enabled.
6 */
7
8 +#ifdef HAVE_FFMPEG
9 /* time_current_frame is used both for snapshot and timelapse features */
10 time_current_frame = cnt->currenttime;
11
12 @@ -1291,7 +1292,7 @@
13 event(cnt, EVENT_IMAGE_SNAPSHOT, newimg, NULL, NULL, cnt->currenttime_tm);
14 cnt->snapshot = 0;
15 }
16 -
17 +#endif /* HAVE_FFMPEG */
18
19 /***** MOTION LOOP - TIMELAPSE FEATURE SECTION *****/
20
21 @@ -1366,9 +1367,9 @@
22 event(cnt, EVENT_TIMELAPSEEND, NULL, NULL, NULL, cnt->currenttime_tm);
23
24
25 + time_last_frame = time_current_frame;
26 #endif /* HAVE_FFMPEG */
27
28 - time_last_frame = time_current_frame;
29
30
31 /***** MOTION LOOP - VIDEO LOOPBACK SECTION *****/