Muhammad Faiz
fc3a03fcf9
avfilter: take_samples: do not directly return frame when samples are skipped
...
Modifying data pointer when skipping samples may make it unaligned.
Workaround for Ticket6349.
This should fix the crash of ticket's testcase and a crash/regression
with avxsynth (reported by Michael Niedermayer).
Also change frame->nb_samples < max to frame->nb_samples <= max.
This improves performance. Benchmark:
./ffmpeg -filter_complex "aevalsrc=0:n=1166,firequalizer=fixed=on" -f null null
old:
25767 decicycles in take_samples, 1023 runs, 1 skips
25422 decicycles in take_samples, 2047 runs, 1 skips
25181 decicycles in take_samples, 4095 runs, 1 skips
24904 decicycles in take_samples, 8191 runs, 1 skips
new:
550 decicycles in take_samples, 1024 runs, 0 skips
548 decicycles in take_samples, 2048 runs, 0 skips
545 decicycles in take_samples, 4096 runs, 0 skips
544 decicycles in take_samples, 8192 runs, 0 skips
Reviewed-by: Nicolas George <george@nsup.org >
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Muhammad Faiz <mfcc64@gmail.com >
2017-05-20 23:19:46 +07:00
..
2017-01-24 23:51:36 +01:00
2017-05-09 20:47:52 +02:00
2017-05-13 11:39:28 +02:00
2017-05-12 10:48:13 +02:00
2017-03-30 23:35:18 +02:00
2017-05-17 22:59:11 +02:00
2017-05-10 20:10:02 +02:00
2017-05-09 23:08:00 -03:00
2017-05-13 11:39:28 +02:00
2017-04-10 12:04:14 +02:00
2016-12-10 11:57:11 +01:00
2017-05-13 11:39:28 +02:00
2017-04-23 14:40:30 +07:00
2016-12-01 09:53:38 +01:00
2017-05-13 11:39:28 +02:00
2017-05-13 11:39:28 +02:00
2017-05-13 11:39:28 +02:00
2017-04-23 14:40:30 +07:00
2017-05-13 11:39:28 +02:00
2017-05-13 11:39:28 +02:00
2017-04-25 18:08:26 +02:00
2017-05-16 19:16:50 +02:00
2017-04-23 14:40:30 +07:00
2017-04-23 14:40:30 +07:00
2017-03-30 23:35:18 +02:00
2017-05-15 14:29:18 +02:00
2017-05-17 20:18:39 +02:00
2017-04-30 13:00:01 +02:00
2017-04-23 14:40:30 +07:00
2017-05-13 11:39:28 +02:00
2017-05-13 11:39:28 +02:00
2017-05-13 11:39:28 +02:00
2017-04-23 14:40:30 +07:00
2017-04-05 11:43:12 -05:00
2017-04-23 14:40:30 +07:00
2017-05-20 12:43:11 +02:00
2017-05-15 14:29:18 +02:00
2017-05-18 23:13:52 +02:00
2017-05-15 19:58:15 +02:00
2017-04-23 14:40:30 +07:00
2017-05-13 11:39:28 +02:00
2017-05-17 20:18:39 +02:00
2017-05-13 11:39:28 +02:00
2017-05-13 11:39:28 +02:00
2017-05-13 11:39:28 +02:00
2017-05-13 11:39:28 +02:00
2017-01-12 10:22:52 +01:00
2017-03-30 10:29:14 -08:00
2017-04-23 14:40:30 +07:00
2017-04-22 20:08:45 +02:00
2017-05-13 11:39:28 +02:00
2017-04-23 14:40:30 +07:00
2017-05-13 11:39:28 +02:00
2016-11-13 10:41:16 +01:00
2017-05-13 11:39:28 +02:00
2017-05-13 11:39:28 +02:00
2017-05-20 23:19:46 +07:00
2017-03-30 00:02:08 +02:00
2017-05-07 19:37:34 +02:00
2017-05-13 11:39:28 +02:00
2017-01-12 15:07:18 +01:00
2017-05-13 11:39:28 +02:00
2017-04-23 14:40:30 +07:00
2017-03-30 22:46:31 +02:00
2017-05-13 11:39:28 +02:00
2017-05-13 11:39:28 +02:00
2017-05-13 11:39:28 +02:00
2017-02-04 23:54:18 +01:00
2017-05-13 11:39:28 +02:00
2017-05-13 11:39:28 +02:00
2017-04-23 14:40:30 +07:00
2017-05-13 11:39:28 +02:00
2017-05-13 11:39:28 +02:00
2017-04-23 14:40:30 +07:00
2017-04-23 14:40:30 +07:00
2017-05-13 11:39:28 +02:00
2017-04-23 14:40:30 +07:00
2017-05-13 11:39:28 +02:00
2016-12-10 11:57:11 +01:00
2016-11-13 10:41:16 +01:00
2017-05-13 11:39:28 +02:00
2017-04-23 14:40:30 +07:00
2017-01-12 14:06:16 +01:00
2017-01-24 23:51:36 +01:00
2016-12-10 11:57:11 +01:00
2017-04-23 14:40:30 +07:00
2017-01-12 10:22:52 +01:00
2017-05-20 23:19:46 +07:00
2017-05-20 23:19:46 +07:00
2016-12-24 13:18:02 +01:00
2017-05-19 20:21:47 +07:00
2017-05-02 14:09:50 -03:00
2017-03-30 00:02:08 +02:00
2017-04-29 01:23:25 +07:00
2017-05-17 20:18:39 +02:00
2017-04-23 18:31:05 +02:00
2017-03-28 23:47:24 +02:00
2017-02-02 22:58:54 +00:00
2017-02-02 22:58:54 +00:00
2017-04-23 14:40:30 +07:00
2017-05-13 11:39:28 +02:00
2017-05-13 11:39:28 +02:00
2016-12-18 10:38:52 +01:00
2017-04-23 14:40:30 +07:00
2017-05-13 11:39:28 +02:00
2016-12-10 11:57:11 +01:00
2017-05-13 11:39:28 +02:00
2017-05-17 20:18:39 +02:00
2017-05-13 11:39:28 +02:00
2017-04-10 18:13:02 +02:00
2017-04-10 18:13:02 +02:00
2017-05-13 11:39:28 +02:00
2016-11-29 16:32:33 +01:00
2017-05-13 11:39:28 +02:00
2017-04-23 14:40:30 +07:00
2017-04-10 16:53:17 +02:00
2017-02-03 21:52:22 +01:00
2017-05-13 11:39:28 +02:00
2017-05-13 11:39:28 +02:00
2017-05-13 11:39:28 +02:00
2017-05-13 11:39:28 +02:00
2017-05-13 11:39:28 +02:00
2016-11-28 11:24:09 -05:00
2017-04-23 14:40:30 +07:00
2017-04-23 14:40:30 +07:00
2017-05-13 11:39:28 +02:00
2017-04-29 19:12:34 +02:00
2017-04-10 10:12:23 +02:00
2016-12-23 18:53:20 +01:00
2017-05-13 11:39:28 +02:00
2017-05-15 21:32:44 +02:00
2017-03-30 03:12:05 +02:00
2017-04-23 14:40:30 +07:00
2017-05-13 11:39:28 +02:00
2017-02-03 21:52:22 +01:00
2017-05-13 11:39:28 +02:00
2017-04-23 14:40:30 +07:00
2017-05-13 11:39:28 +02:00
2017-04-23 14:40:30 +07:00
2017-05-13 11:39:28 +02:00
2017-05-13 11:39:28 +02:00
2016-11-13 10:41:16 +01:00
2017-05-13 11:39:28 +02:00
2017-05-13 11:39:28 +02:00
2017-02-03 21:52:22 +01:00
2017-05-13 11:39:28 +02:00
2017-04-12 20:21:11 +02:00
2016-11-13 10:41:16 +01:00
2017-04-10 18:13:02 +02:00
2017-05-13 11:39:28 +02:00
2017-05-13 11:39:28 +02:00
2017-05-09 16:17:49 +02:00
2017-05-13 11:39:28 +02:00
2017-05-13 11:39:28 +02:00
2017-03-30 00:02:08 +02:00
2017-03-30 10:51:32 +02:00
2017-03-30 00:02:08 +02:00
2017-03-30 00:02:08 +02:00
2017-04-10 18:13:02 +02:00
2017-04-23 14:40:30 +07:00
2017-05-13 11:39:28 +02:00
2017-05-13 11:39:28 +02:00
2017-05-02 14:09:50 -03:00
2017-05-13 11:39:28 +02:00
2017-01-11 09:59:55 +08:00
2017-04-24 20:37:30 +02:00
2017-03-13 15:30:05 +01:00
2017-02-13 22:54:21 +01:00
2017-04-23 18:21:50 +02:00
2017-04-23 18:31:05 +02:00
2017-05-13 11:39:28 +02:00
2016-11-01 12:28:36 +01:00
2017-04-09 16:30:38 +02:00
2017-03-30 22:46:31 +02:00
2017-05-13 11:39:28 +02:00
2017-05-13 11:39:28 +02:00
2017-05-13 11:39:28 +02:00
2017-04-23 14:40:30 +07:00
2017-04-23 14:40:30 +07:00
2017-05-13 11:39:28 +02:00
2017-05-12 17:37:20 +02:00
2017-05-13 11:39:28 +02:00
2017-04-10 11:25:44 +02:00
2017-02-03 21:52:22 +01:00
2017-05-13 11:39:28 +02:00
2017-04-23 18:21:51 +02:00
2017-04-23 14:40:30 +07:00
2017-04-23 14:40:30 +07:00
2017-04-23 14:40:30 +07:00
2017-01-29 13:29:33 +01:00
2017-05-13 11:39:28 +02:00
2016-11-13 10:41:16 +01:00
2017-05-13 11:39:28 +02:00
2017-05-15 11:46:50 +02:00
2017-05-15 11:46:50 +02:00
2017-03-30 00:02:08 +02:00
2017-03-30 03:12:05 +02:00
2017-03-30 00:02:08 +02:00
2017-04-23 14:40:30 +07:00
2017-05-13 11:39:28 +02:00
2017-05-13 11:39:28 +02:00
2017-05-13 11:39:28 +02:00
2017-04-23 14:40:30 +07:00
2017-05-13 11:39:28 +02:00
2017-01-06 12:27:46 +01:00
2017-05-13 11:39:28 +02:00
2017-03-26 20:34:47 +02:00
2017-05-13 11:39:28 +02:00
2017-05-13 11:39:28 +02:00
2017-04-23 14:40:30 +07:00
2017-05-13 11:39:28 +02:00
2017-05-13 11:39:28 +02:00
2017-04-23 14:40:30 +07:00
2017-05-13 11:39:28 +02:00
2017-01-30 18:44:08 +01:00
2017-05-13 11:39:28 +02:00
2017-05-13 11:39:28 +02:00
2017-05-02 14:09:50 -03:00
2016-12-27 23:49:44 +01:00
2017-02-03 21:52:22 +01:00
2017-05-13 11:39:28 +02:00
2017-04-23 14:40:30 +07:00
2017-05-13 11:39:28 +02:00
2017-05-13 11:39:28 +02:00
2017-05-13 11:39:28 +02:00
2016-12-25 09:50:36 +01:00
2017-04-23 14:40:30 +07:00
2017-04-22 13:18:59 +02:00
2017-05-13 11:39:28 +02:00
2017-03-31 12:28:58 +02:00
2016-11-27 11:43:54 +01:00
2017-03-29 23:12:00 +02:00
2017-05-13 11:39:28 +02:00
2017-05-13 11:39:28 +02:00
2017-05-13 11:39:28 +02:00
2017-05-13 11:39:28 +02:00
2016-11-13 10:41:16 +01:00
2017-04-23 14:40:30 +07:00
2016-12-25 09:50:36 +01:00