diff utils.c @ 5860:731cb836bca6 libavformat

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.
author stefano
date Sun, 21 Mar 2010 16:34:04 +0000
parents 3dc78fb78b2a
children fd37c39041cd
line wrap: on
line diff
--- 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;
     }