Christopher Decker
b0692eb266
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-08-02 06:24:00 +02:00
..
2026-06-18 09:23:16 -03: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
2026-03-29 23:01:39 +00:00
2025-07-05 21:10:49 +02:00
2025-05-13 19:38:08 +01:00
2025-08-29 12:29:52 +00:00
2025-08-04 08:01:24 +00:00
2025-09-02 16:05:45 +02: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-08-13 11:42:50 -03:00
2022-04-28 02:39:37 +02:00
2026-06-04 11:44:52 +02:00
2025-07-05 21:10:43 +02:00
2026-04-22 13:28:17 +00:00
2026-05-29 03:25:53 +00:00
2026-05-30 22:37:09 -03:00
2026-06-01 21:53:36 -05: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-11 22:48:26 +02:00
2025-08-03 13:48:47 +02:00
2025-07-05 21:10:49 +02:00
2025-12-07 19:36:49 +00:00
2026-06-25 16:39:27 +00:00
2025-07-05 21:10:48 +02:00
2025-07-05 21:10:49 +02:00
2026-03-01 04:21:45 +00:00
2026-06-21 21:41:02 -03:00
2026-05-30 14:11:03 +00:00
2025-07-05 21:10:48 +02:00
2025-08-13 11:36:22 -03:00
2022-05-03 04:18:06 +02:00
2026-07-21 22:59:56 +02:00
2026-06-23 17:14:42 +02:00
2019-04-19 01:11:39 +02:00
2025-12-29 12:02:53 -03:00
2026-06-24 23:31:54 +02:00
2026-05-19 11:36:10 +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
2026-05-16 13:55:22 -03:00
2026-06-02 20:06:21 -03:00
2022-12-03 19:38:11 +01:00
2024-10-16 17:38:57 -03:00
2026-04-09 03:01:43 +00:00
2025-06-17 16:39:36 +10:00
2026-04-19 15:00:08 +00:00
2026-08-02 06:24:00 +02:00
2026-05-25 21:18:34 +00:00
2026-06-14 15:34:43 +00:00
2026-06-25 01:20:48 +02:00
2025-07-05 21:10:49 +02:00
2023-11-14 18:18:26 +01:00
2026-05-30 17:37:28 +00:00
2025-07-05 21:10:49 +02:00
2025-07-05 21:10:49 +02:00
2026-06-23 20:07:25 -03:00
2025-07-05 21:10:49 +02:00
2025-07-05 21:10:49 +02:00
2026-03-08 16:22:24 -05:00
2025-07-05 21:10:49 +02:00
2026-04-24 16:04:48 -03:00
2025-03-30 08:24:39 +02:00
2026-03-23 10:53:33 -05:00
2026-03-23 10:53:33 -05:00
2026-03-23 10:53:33 -05:00
2025-07-05 21:10:49 +02:00
2026-05-23 10:38:28 +00:00
2026-03-21 01:04:20 +00:00
2025-10-28 19:16:58 +00:00
2022-05-03 04:18:06 +02:00
2026-06-14 21:59:14 +02:00
2025-09-16 15:42:03 -03:00
2026-02-19 14:35:04 +01: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
2026-03-28 11:25:38 +01:00
2025-07-03 19:42:28 +02:00
2026-06-24 16:04:38 +00:00
2022-09-20 18:32:28 +02:00
2026-06-16 09:18:24 -03:00
2026-06-04 11:44:22 +02:00
2025-08-03 13:48:47 +02:00
2022-04-28 02:39:37 +02:00
2025-10-06 11:51:50 -03:00
2026-02-19 14:35:04 +01:00
2022-04-28 02:39:37 +02:00
2022-05-03 04:18:05 +02:00
2026-03-07 20:14:36 +01:00
2026-06-23 19:13:06 +02:00
2026-05-28 21:01:13 +00: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
2026-06-14 15:03:28 -05: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