# HG changeset patch # User stefano # Date 1269189244 0 # Node ID 731cb836bca65e4931745d35511fa6b07e017f71 # Parent fc31294e2c524e0eb47ccb1ea5f41684d6c459eb 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. diff -r fc31294e2c52 -r 731cb836bca6 utils.c --- a/utils.c Sat Mar 20 13:42:49 2010 +0000 +++ b/utils.c Sun Mar 21 16:34:04 2010 +0000 @@ -560,7 +560,7 @@ /* if still no format found, error */ if (!fmt) { - err = AVERROR_NOFMT; + err = AVERROR_INVALIDDATA; goto fail; }