Commit fbd77bc4 authored by stefano's avatar stefano

Make av_open_input_file() return AVERROR_INVALIDDATA rather than

AVERROR_NOFMT if the format is unknown / cannot be recognized.

It is returned AVERROR_INVALIDDATA, in the sense that the data is
invalid within what the specific libav* binary supports.

That was the last remaining use of AVERROR_NOFMT, which is going to be
dropped at the next libavutil major bump.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22625 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent be451d98
......@@ -560,7 +560,7 @@ int av_open_input_file(AVFormatContext **ic_ptr, const char *filename,
/* if still no format found, error */
if (!fmt) {
err = AVERROR_NOFMT;
err = AVERROR_INVALIDDATA;
goto fail;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment