[PATCH 10/15] Make av_open_input_file() return AVERROR_NOTSUPP rather than AV_NOFMT if the format is unknonw / cannot be recognized.

Stefano Sabatini stefano.sabatini-lala
Wed Mar 17 00:36:45 CET 2010


That was the only use of AVERROR_NOFMT, which is going to be dropped.
---
 libavformat/utils.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/utils.c b/libavformat/utils.c
index fa7e8de..1b2b73f 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -559,7 +559,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_NOTSUPP;
         goto fail;
     }
 
-- 
1.6.6.1


--H8ygTp4AXg6deix2--



More information about the ffmpeg-devel mailing list