Opened 13 years ago
Closed 13 years ago
#618 closed enhancement (fixed)
avformat_open_input() error reporting can be misleading
Reported by: | Eric P. Mangold | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | avformat |
Version: | git-master | Keywords: | |
Cc: | Eric P. Mangold | Blocked By: | |
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
Attemping to use avformat_open_input() without having called av_register_all() first results in ENOENT "No such file or directory". As an ffmpeg newcomer this was very confusing and I had to dig in to the guts of libavformat with a debugger before I figured out what was going on.
Attached is a patch that introduces a new error code with an informative error message for this case.
Attachments (1)
Change History (2)
by , 13 years ago
Attachment: | no-url-proto-error.patch added |
---|
comment:1 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Ive solved this a bit differently, as i think the error code is not so helpfull, it still requires quite a bit of indirection. That is "why does it fail? what does this error code mean? ..."