marcos ashton
520a3042d2
libavfilter/vf_v360: fix operator precedence in stereo loop condition
...
The loop condition in the DEFINE_REMAP macro:
stereo < 1 + s->out_stereo > STEREO_2D
is parsed by C as:
(stereo < (1 + s->out_stereo)) > STEREO_2D
Since STEREO_2D is 0 and relational operators return 0 or 1, the
outer comparison against 0 is a no-op for STEREO_2D and STEREO_SBS.
But for STEREO_TB (value 2) the loop runs 3 iterations instead of 2,
producing an out-of-bounds stereo pass.
Add parentheses so the comparison is evaluated first:
stereo < 1 + (s->out_stereo > STEREO_2D)
This gives 1 iteration for 2D and 2 for any stereo format (SBS or TB),
matching the actual number of stereo views.
Signed-off-by: marcos ashton <marcosashiglesias@gmail.com >
(cherry picked from commit 9559a6036d )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2026-05-05 18:55:09 +02:00
..
2025-12-07 15:55:56 +00:00
2021-03-18 09:30:09 +08:00
2021-02-17 15:51:28 -03:00
2022-01-11 15:15:53 +01:00
2021-02-11 11:39:55 +01:00
2024-07-21 21:09:25 +02:00
2021-02-10 19:21:01 +01:00
2021-02-21 13:42:40 +01:00
2021-03-01 06:10:44 +01:00
2024-04-03 02:05:56 +02:00
2021-02-12 23:01:52 +01:00
2021-02-10 14:15:42 +01:00
2021-09-08 21:31:50 +02:00
2021-03-10 23:52:07 +01:00
2021-04-02 21:39:27 +02:00
2026-05-05 18:55:07 +02:00
2024-07-21 20:03:21 +02:00
2025-03-16 22:12:18 +01:00
2024-04-03 02:05:55 +02:00
2022-01-11 15:15:53 +01:00
2022-01-11 15:15:53 +01:00
2021-03-06 12:42:16 +01:00
2022-01-11 15:15:53 +01:00
2021-04-02 21:38:21 +02:00
2025-11-30 21:38:20 +01:00
2022-01-11 22:37:58 +01:00
2021-03-07 15:18:35 +01:00
2021-03-07 15:19:10 +01:00
2021-03-07 15:19:10 +01:00
2025-04-04 03:36:39 +02:00
2026-05-05 18:55:05 +02:00
2021-02-18 09:59:37 +08:00
2021-02-18 09:59:37 +08:00
2021-02-18 09:59:37 +08:00
2021-02-07 21:45:26 +01:00
2021-07-18 22:32:22 +02:00
2021-03-10 20:26:36 -03:00
2021-03-10 20:26:36 -03:00
2021-02-16 21:12:11 +01:00
2021-02-25 22:03:32 +01:00
2021-02-25 22:03:32 +01:00
2021-03-06 12:41:30 +01:00
2025-12-07 15:55:56 +00:00
2026-05-05 18:54:56 +02:00
2024-07-22 14:23:27 +02:00
2025-12-07 15:55:56 +00:00
2024-06-15 23:32:42 +02:00
2021-03-20 01:01:12 +01:00
2025-03-16 22:12:17 +01:00
2024-07-21 20:02:01 +02:00
2024-07-21 22:24:13 +02:00
2025-03-16 22:12:25 +01:00
2021-06-18 20:53:56 +02:00
2021-04-02 21:41:26 +02:00
2021-02-07 11:48:28 +01:00
2026-05-05 18:55:05 +02:00
2021-02-09 18:20:15 +01:00
2021-02-13 12:38:15 +01:00
2021-06-18 20:53:56 +02:00
2021-02-08 16:10:51 +01:00
2021-02-06 15:26:39 +01:00
2021-02-18 09:59:37 +08:00
2024-07-22 10:45:24 +02:00
2021-02-18 09:59:37 +08:00
2021-02-17 11:53:51 +01:00
2021-02-10 19:23:48 +01:00
2021-02-07 21:45:26 +01:00
2021-09-08 21:31:50 +02:00
2026-05-05 18:54:58 +02:00
2021-02-09 12:29:04 +01:00
2022-09-25 13:51:36 +02:00
2021-02-17 15:45:40 -03:00
2024-04-03 02:05:55 +02:00
2021-03-25 04:36:39 +01:00
2021-03-06 12:42:16 +01:00
2022-01-11 15:15:53 +01:00
2021-02-11 00:45:08 +01:00
2026-05-05 18:54:54 +02:00
2021-02-07 22:41:49 +01:00
2024-07-22 10:47:15 +02:00
2021-02-08 16:37:23 +01:00
2021-02-09 11:24:31 +01:00
2021-03-17 15:19:36 -03:00
2021-09-08 21:31:50 +02:00
2024-04-03 02:05:58 +02:00
2021-02-06 11:34:28 +01:00
2021-02-12 00:08:39 +01:00
2026-05-05 18:54:54 +02:00
2021-03-10 21:00:21 +01:00
2021-03-19 23:00:04 +01:00
2021-04-11 10:22:57 +02:00
2025-12-07 15:55:56 +00:00
2021-04-02 21:38:30 +02:00
2021-02-08 11:06:29 +01:00
2021-02-17 23:09:40 +00:00
2021-02-19 21:15:08 +01:00
2024-06-15 23:33:00 +02:00
2021-10-07 18:18:04 +02:00
2026-05-05 18:55:06 +02:00
2022-09-25 13:51:54 +02:00
2024-04-03 02:06:08 +02:00
2021-02-18 09:59:37 +08:00
2021-02-25 11:43:56 +01:00
2026-05-05 18:54:55 +02:00
2022-04-06 20:27:35 +02:00
2024-04-03 02:05:57 +02:00
2024-06-15 23:32:42 +02:00
2021-02-08 13:01:28 +01:00
2021-02-06 11:40:59 +01:00
2025-03-16 22:11:57 +01:00
2023-03-16 17:13:44 -03:00
2021-03-17 15:19:36 -03:00
2026-05-05 18:55:09 +02:00
2021-02-15 00:12:38 +01:00
2024-04-03 02:05:57 +02:00
2021-02-25 16:38:27 +01:00
2021-06-18 20:53:56 +02:00
2022-01-11 15:15:53 +01:00
2024-04-03 02:05:55 +02:00
2025-03-16 22:11:56 +01:00
2025-03-16 22:11:57 +01:00
2021-06-18 20:53:56 +02:00
2026-05-05 18:54:56 +02:00
2022-09-25 13:51:36 +02:00
2022-09-25 13:51:36 +02:00
2021-02-16 22:26:56 +01:00
2021-03-01 06:10:44 +01:00
2022-09-25 13:51:36 +02:00