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