[FFmpeg-cvslog] r23002 - in trunk/libavformat: avformat.h utils.c

reimar subversion
Sat May 1 15:49:35 CEST 2010


Author: reimar
Date: Sat May  1 15:49:35 2010
New Revision: 23002

Log:
Export av_probe_input_format2.

Modified:
   trunk/libavformat/avformat.h
   trunk/libavformat/utils.c

Modified: trunk/libavformat/avformat.h
==============================================================================
--- trunk/libavformat/avformat.h	Sat May  1 10:24:24 2010	(r23001)
+++ trunk/libavformat/avformat.h	Sat May  1 15:49:35 2010	(r23002)
@@ -22,7 +22,7 @@
 #define AVFORMAT_AVFORMAT_H
 
 #define LIBAVFORMAT_VERSION_MAJOR 52
-#define LIBAVFORMAT_VERSION_MINOR 61
+#define LIBAVFORMAT_VERSION_MINOR 62
 #define LIBAVFORMAT_VERSION_MICRO  0
 
 #define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
@@ -888,6 +888,18 @@ AVInputFormat *av_find_input_format(cons
 AVInputFormat *av_probe_input_format(AVProbeData *pd, int is_opened);
 
 /**
+ * Guesses the file format.
+ *
+ * @param is_opened Whether the file is already opened; determines whether
+ *                  demuxers with or without AVFMT_NOFILE are probed.
+ * @param score_max minimum score required to accept a detection, set to actual
+ *                  detection score afterwards.
+ *                  If the score is < AVPROBE_SCORE_MAX / 4 it is recommended
+ *                  to retry with a larger probe buffer.
+ */
+AVInputFormat *av_probe_input_format2(AVProbeData *pd, int is_opened, int *score_max);
+
+/**
  * Allocates all the structures needed to read an input stream.
  *        This does not open the needed codecs for decoding the stream[s].
  */

Modified: trunk/libavformat/utils.c
==============================================================================
--- trunk/libavformat/utils.c	Sat May  1 10:24:24 2010	(r23001)
+++ trunk/libavformat/utils.c	Sat May  1 15:49:35 2010	(r23002)
@@ -310,7 +310,7 @@ int av_filename_number_test(const char *
     return filename && (av_get_frame_filename(buf, sizeof(buf), filename, 1)>=0);
 }
 
-static AVInputFormat *av_probe_input_format2(AVProbeData *pd, int is_opened, int *score_max)
+AVInputFormat *av_probe_input_format2(AVProbeData *pd, int is_opened, int *score_max)
 {
     AVInputFormat *fmt1, *fmt;
     int score;



More information about the ffmpeg-cvslog mailing list