Files
FFmpeg/libavformat
xiongweixiao 8ce32a7cbb lavf: vvc_probe: lower probe score for invalid SPS/PPS/IRAP order to avoid misdetection of mp3 as VVC
The current vvc_probe function checks for SPS, PPS, and IRAP NAL units but does not enforce their detection order. This can lead to false positives when PPS or IRAP appear before SPS, causing malformed or non-compliant bitstreams to be incorrectly identified as valid VVC streams.

This commit modifies the logic to use boolean flags and enforces the correct detection sequence: SPS must be detected before PPS, and PPS before IRAP. This ensures more accurate probing and prevents invalid bitstreams from being misidentified.

For streams with wrong ordering a lower score is returned

This change addresses issues reported in:
- https://trac.ffmpeg.org/ticket/11496
- https://trac.ffmpeg.org/ticket/11087

Signed-off-by: xiongweixiao <xiongweixiaoxxw@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2025-05-12 11:07:35 +02:00
..
2024-03-31 00:08:43 +01:00
2023-01-27 19:45:36 +01:00
2025-04-27 15:52:30 +01:00
2024-08-28 16:27:54 +02:00
2025-04-13 22:49:21 +02:00
2024-09-24 15:37:15 +02:00
2025-04-13 22:49:21 +02:00
2024-03-31 00:08:43 +01:00
2024-03-31 00:08:43 +01:00
2024-03-26 06:36:43 +01:00
2024-03-31 00:08:43 +01:00
2025-04-27 15:52:30 +01:00
2024-05-09 16:17:39 +02:00
2025-04-22 20:45:57 +02:00
2025-01-17 23:33:27 +01:00
2025-04-22 20:45:57 +02:00
2024-05-25 13:51:27 +02:00
2024-03-31 00:08:43 +01:00
2024-03-31 00:08:43 +01:00
2024-03-11 16:52:42 +01:00
2024-12-02 03:14:47 +01:00
2024-06-19 10:12:50 -03:00
2022-03-16 14:05:26 +02:00
2024-03-31 00:08:43 +01:00
2024-03-26 06:36:43 +01:00
2024-06-04 11:46:27 +02:00
2024-07-21 16:41:23 +02:00
2023-05-31 09:03:58 -07:00
2022-02-24 12:56:49 +01:00
2024-04-17 18:31:06 +05:30
2024-05-01 02:57:12 +02:00
2024-04-06 12:59:56 +02:00
2024-04-06 12:59:56 +02:00
2024-04-06 12:59:56 +02:00
2025-04-27 15:52:30 +01:00
2025-02-16 15:41:41 +01:00
2024-03-31 00:08:43 +01:00
2024-03-31 00:08:43 +01:00
2024-03-31 00:08:43 +01:00
2024-03-31 00:08:43 +01:00
2024-03-31 00:08:43 +01:00
2024-03-31 00:08:43 +01:00
2024-07-21 16:41:43 +02:00
2025-03-28 15:23:28 +01:00
2024-03-31 00:08:43 +01:00
2024-03-31 00:08:43 +01:00
2024-11-03 10:53:15 +11:00
2022-03-15 09:42:36 -03:00
2024-03-15 12:51:15 +01:00
2024-03-15 12:51:15 +01:00
2022-03-26 00:42:00 +02:00
2024-03-31 00:08:43 +01:00
2024-08-14 18:20:58 +02:00
2024-07-21 17:02:11 +02:00
2024-03-31 00:08:43 +01:00
2024-03-31 00:08:43 +01:00
2024-03-31 00:08:43 +01:00
2024-07-21 17:02:11 +02:00
2025-02-07 10:13:50 -05:00
2025-04-27 15:52:30 +01:00
2024-03-26 06:36:43 +01:00
2024-03-26 06:36:43 +01:00
2024-07-21 17:02:12 +02:00
2024-03-31 00:08:43 +01:00