Opened 3 years ago
#10721 new defect
http: protocol for output ignores HTTP errors
| Reported by: | maximrazin | Owned by: | |
|---|---|---|---|
| Priority: | normal | Component: | avformat |
| Version: | 6.0 | Keywords: | |
| Cc: | Blocked By: | ||
| Blocking: | Reproduced by developer: | no | |
| Analyzed by developer: | no |
Description
Summary of the bug:
When ffmpeg output uses http: protocol, and HTTP server returns an error (e.g. 404 or 405), the error is ignored completely, it isn't even reflected in logs.
How to reproduce:
Set up a local web server, don't enable HTTP PUT/POST. I used nginx with a default configuration
% ffmpeg -i file.ts -c copy -f mpegts http://localhost/blackhole.ts
HTTP server returns 405, but ffmpeg does not react and completes successfully
Expected behavior:
ffmpeg should log the HTTP error and fail with I/O error
Attachments (1)
Change History (1)
by , 3 years ago
| Attachment: | 0001-libavformat-Verify-HTTP-reply-headers-on-POST-PUT.patch added |
|---|
Note:
See TracTickets
for help on using tickets.



Proposed patch