marcos ashton
5d70f0844c
libavutil/stereo3d: fix prefix matching in *_from_name() functions
...
The three *_from_name() functions used av_strstart() for prefix matching,
which returns incorrect results when one name is a prefix of another.
av_stereo3d_from_name("side by side (quincunx subsampling)") matched
"side by side" at index 1 and returned AV_STEREO3D_SIDEBYSIDE instead of
AV_STEREO3D_SIDEBYSIDE_QUINCUNX. Similarly,
av_stereo3d_primary_eye_from_name("nonexistent") matched "none" and
returned AV_PRIMARY_EYE_NONE instead of -1.
Switch all three functions from av_strstart() to strcmp() for exact
matching. No in-tree callers rely on prefix matching.
Signed-off-by: marcos ashton <marcosashiglesias@gmail.com >
2026-03-25 01:32:20 +00:00
..
2026-03-20 13:16:06 +02:00
2026-03-09 10:17:26 +01:00
2026-03-09 10:17:26 +01:00
2026-03-09 10:17:26 +01:00
2026-03-21 01:04:20 +00:00
2025-08-03 13:48:47 +02:00
2026-03-11 14:03:36 +00:00
2025-09-11 18:32:23 -03:00
2025-04-05 20:46:40 -03:00
2026-03-10 13:52:18 +01:00
2026-02-20 11:59:37 +01:00
2026-03-22 15:55:54 +00:00
2026-02-13 09:21:02 +01:00
2025-07-22 19:56:34 +02:00
2025-07-22 01:35:01 +02:00
2025-05-07 15:35:47 +02:00
2025-08-31 09:37:59 +02:00
2026-03-21 00:34:50 +00:00
2026-03-10 13:52:18 +01:00
2025-08-03 13:48:47 +02:00
2025-11-19 17:46:06 +00:00
2026-03-11 14:03:36 +00:00
2026-03-11 14:03:36 +00:00
2026-03-11 14:03:36 +00:00
2026-03-11 14:03:36 +00:00
2025-11-01 12:41:23 -03:00
2025-10-24 22:24:54 +00:00
2025-04-07 23:38:09 -03:00
2025-08-03 13:48:47 +02:00
2026-02-04 15:25:18 +00:00
2025-01-28 15:26:00 -03:00
2026-03-02 11:55:30 +01:00
2026-03-06 17:28:00 +01:00
2026-03-03 03:28:37 +01:00
2025-11-24 16:48:31 +01:00
2025-08-03 13:48:47 +02:00
2025-11-30 22:20:13 +01:00
2025-11-30 22:20:13 +01:00
2025-03-28 14:33:08 -03:00
2025-03-28 14:33:08 -03:00
2025-09-02 17:05:50 +02:00
2026-03-07 00:54:49 +00:00
2025-08-03 13:48:47 +02:00
2025-07-22 19:56:34 +02:00
2025-02-04 00:14:14 +01:00
2026-03-11 18:41:10 +00:00
2026-03-11 10:23:35 +01:00
2025-08-03 13:48:47 +02:00
2025-11-27 22:11:57 +01:00
2026-01-26 10:39:10 +00:00
2026-01-26 10:39:10 +00:00
2025-12-01 03:15:25 +00:00
2025-09-08 15:44:47 +00:00
2025-09-03 20:21:51 -05:00
2025-07-18 14:44:39 +08:00
2025-07-18 14:44:39 +08:00
2025-07-18 14:44:39 +08:00
2025-12-03 11:52:54 +01:00
2025-08-03 13:48:47 +02:00
2025-08-03 13:48:47 +02:00
2025-08-03 13:48:47 +02:00
2025-12-08 21:31:13 +00:00
2026-01-18 03:33:04 +00:00
2026-02-19 16:52:58 +00:00
2026-03-14 17:05:06 +00:00
2026-03-14 17:05:06 +00:00
2025-07-18 14:44:39 +08:00
2025-08-03 13:48:47 +02:00
2026-02-08 21:58:06 -03:00
2025-12-29 11:59:36 -03:00
2025-12-23 03:39:16 +00:00
2025-12-03 11:52:54 +01:00
2025-06-12 14:17:37 +03:00
2025-08-03 13:48:47 +02:00
2025-03-22 03:35:28 +01:00
2025-11-30 22:20:13 +01:00
2025-12-13 21:33:11 +00:00
2025-08-03 13:48:47 +02:00
2026-03-21 01:04:20 +00:00
2025-08-03 13:48:47 +02:00
2025-06-13 11:36:20 +03:00
2026-03-12 18:26:42 +01:00
2025-08-03 13:48:47 +02:00
2025-11-06 21:46:43 +01:00
2025-09-02 17:05:50 +02:00
2026-03-09 10:17:26 +01:00
2025-11-06 21:46:43 +01:00
2025-02-13 11:41:51 +02:00
2025-08-03 13:48:47 +02:00
2025-08-03 13:48:47 +02:00
2025-05-22 15:12:54 +02:00
2025-08-03 13:48:47 +02:00
2025-09-26 16:15:46 +00:00
2025-10-07 14:51:46 -07:00
2025-03-03 18:10:10 -03:00
2026-03-10 13:52:18 +01:00
2025-09-26 16:15:46 +00:00
2025-07-31 10:58:36 +02:00
2025-07-31 10:58:36 +02:00
2026-03-25 01:32:20 +00:00
2025-07-01 22:41:56 +02:00
2025-08-03 13:48:47 +02:00
2025-08-15 19:54:01 +00:00
2025-03-02 18:43:08 +01:00
2025-03-02 18:43:08 +01:00
2026-03-13 22:48:32 +01:00
2025-12-13 15:14:38 +00:00
2025-08-07 07:36:33 +00:00
2025-08-03 13:48:47 +02:00
2026-02-13 09:21:02 +01:00
2026-02-20 11:59:37 +01:00
2026-03-14 17:05:06 +00:00
2025-08-03 13:48:47 +02:00
2026-02-19 19:42:31 +01:00
2026-02-26 14:10:21 +01:00
2026-02-19 19:42:31 +01:00
2026-02-26 14:10:21 +01:00
2026-03-14 17:05:06 +00:00
2026-02-26 14:10:21 +01:00
2025-07-22 09:47:18 -03:00
2025-07-22 09:47:18 -03:00
2026-01-12 17:28:41 +01:00