Christopher Decker
f2e4aea38d
avformat/os_support: fix return value of win32_rename
...
The return value of MoveFileExW was not being correctly interpreted,
see https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-movefileexw .
On Windows a failed rename over the file: protocol now surfaces as failed to rename file %s to %s:
Operation not permitted (ff_rename, libavformat/avio.c:867) plus an AVERROR(EPERM) return, where previously the muxer
reported success and the user was left with a missing or stale output file and no diagnostic. This affects the
write-to-temp-then-rename paths in hlsenc, dashenc, hdsenc, smoothstreamingenc, segment, and img2enc (e.g. HLS/DASH
playlist updates, -write_temp_file, segment list finalization).
Also, added unit tests to exercise the rename function.
Signed-off-by: Christopher Decker <chris.decker08@gmail.com >
(cherry picked from commit 94ff335d76 )
Co-Authored-by: Fable 5
2026-10-14 23:49:49 +02:00
..
2025-07-05 21:10:49 +02:00
2025-07-05 21:10:49 +02:00
2025-07-05 21:10:49 +02:00
2025-08-04 08:01:24 +00:00
2025-07-05 21:10:49 +02:00
2025-07-05 21:10:49 +02:00
2025-07-05 21:10:49 +02:00
2025-07-05 21:10:49 +02:00
2025-07-05 21:10:48 +02:00
2025-07-05 21:10:49 +02:00
2025-05-13 19:38:08 +01:00
2025-07-05 21:10:49 +02:00
2025-08-04 08:01:24 +00:00
2022-04-28 02:39:37 +02:00
2025-07-05 21:10:49 +02:00
2022-05-03 04:18:05 +02:00
2025-07-05 21:10:49 +02:00
2022-04-28 02:39:37 +02:00
2025-07-21 18:10:26 +02:00
2025-07-05 21:10:43 +02:00
2025-07-05 21:10:49 +02:00
2023-12-28 15:31:50 -03:00
2025-08-04 08:01:24 +00:00
2022-04-28 02:39:37 +02:00
2022-05-03 04:18:05 +02:00
2025-07-05 21:10:49 +02:00
2023-07-07 12:12:52 +02:00
2022-05-03 04:18:05 +02:00
2025-07-05 21:10:44 +02:00
2025-12-16 21:14:38 +02:00
2025-08-03 13:48:47 +02:00
2025-07-05 21:10:49 +02:00
2025-07-05 21:10:49 +02:00
2025-12-18 22:26:04 +00:00
2025-07-05 21:10:48 +02:00
2025-07-05 21:10:49 +02:00
2025-07-05 21:10:43 +02:00
2025-07-05 21:10:49 +02:00
2025-07-05 21:10:48 +02:00
2025-08-03 13:48:47 +02:00
2022-05-03 04:18:06 +02:00
2025-11-23 21:47:05 +08:00
2025-08-05 11:47:11 +00:00
2019-04-19 01:11:39 +02:00
2025-06-24 14:41:43 -03:00
2022-09-12 22:26:27 +02:00
2025-07-05 21:10:49 +02:00
2025-07-05 21:10:49 +02:00
2025-07-05 21:10:49 +02:00
2024-06-24 08:50:59 -07:00
2023-12-15 11:52:43 -05:00
2025-08-03 13:48:47 +02:00
2025-07-18 14:55:34 -03:00
2022-12-03 19:38:11 +01:00
2024-10-16 17:38:57 -03:00
2025-07-05 21:10:49 +02:00
2025-06-17 16:39:36 +10:00
2026-10-14 23:49:49 +02:00
2024-03-20 19:14:02 +02:00
2025-07-05 21:10:49 +02:00
2024-04-03 19:10:23 +02:00
2025-07-05 21:10:49 +02:00
2023-11-14 18:18:26 +01:00
2025-07-05 21:10:49 +02:00
2025-07-05 21:10:49 +02:00
2025-07-05 21:10:49 +02:00
2025-07-30 16:48:14 -03:00
2025-07-05 21:10:49 +02:00
2025-07-05 21:10:49 +02:00
2025-07-05 21:10:47 +02:00
2025-07-05 21:10:49 +02:00
2022-04-28 02:39:37 +02:00
2025-03-30 08:24:39 +02:00
2025-07-05 21:10:48 +02:00
2025-04-30 00:03:00 +02:00
2025-04-30 00:03:00 +02:00
2025-07-05 21:10:49 +02:00
2022-10-04 11:54:57 +02:00
2025-07-05 21:10:49 +02:00
2025-07-05 21:10:49 +02:00
2022-05-03 04:18:06 +02:00
2025-05-16 20:43:58 +02:00
2022-05-03 04:18:06 +02:00
2025-07-05 21:10:49 +02:00
2025-05-21 03:10:52 +02:00
2022-05-03 04:18:06 +02:00
2025-07-05 21:10:49 +02:00
2025-07-03 19:42:28 +02:00
2025-07-05 21:10:50 +02:00
2022-09-20 18:32:28 +02:00
2025-07-05 21:10:49 +02:00
2024-05-27 19:04:09 +02:00
2025-08-03 13:48:47 +02:00
2022-04-28 02:39:37 +02:00
2025-08-12 13:45:57 +03:00
2023-12-28 15:31:36 -03:00
2022-04-28 02:39:37 +02:00
2022-05-03 04:18:05 +02:00
2025-07-05 21:10:48 +02:00
2025-08-04 08:01:24 +00:00
2025-07-05 21:10:49 +02:00
2025-07-05 21:10:45 +02:00
2025-07-05 21:10:49 +02:00
2025-07-05 21:10:49 +02:00
2025-08-08 16:55:12 +00:00
2025-07-05 21:10:49 +02:00
2022-05-03 04:18:06 +02:00
2025-07-05 21:10:49 +02:00
2025-07-05 21:10:49 +02:00