[FFmpeg-cvslog] r22625 - trunk/libavformat/utils.c

stefano subversion
Sun Mar 21 17:34:04 CET 2010


Author: stefano
Date: Sun Mar 21 17:34:04 2010
New Revision: 22625

Log:
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.

Modified:
   trunk/libavformat/utils.c

Modified: trunk/libavformat/utils.c
==============================================================================
--- trunk/libavformat/utils.c	Sun Mar 21 17:34:01 2010	(r22624)
+++ trunk/libavformat/utils.c	Sun Mar 21 17:34:04 2010	(r22625)
@@ -560,7 +560,7 @@ int av_open_input_file(AVFormatContext *
 
     /* if still no format found, error */
     if (!fmt) {
-        err = AVERROR_NOFMT;
+        err = AVERROR_INVALIDDATA;
         goto fail;
     }
 



More information about the ffmpeg-cvslog mailing list