[Ffmpeg-cvslog] r7590 - in trunk/libavformat: avformat.h utils.c

reimar subversion
Fri Jan 19 23:54:50 CET 2007


Author: reimar
Date: Fri Jan 19 23:54:50 2007
New Revision: 7590

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

Log:
Attempt to better document AVFMT_NOFILE.


Modified: trunk/libavformat/avformat.h
==============================================================================
--- trunk/libavformat/avformat.h	(original)
+++ trunk/libavformat/avformat.h	Fri Jan 19 23:54:50 2007
@@ -128,7 +128,8 @@
     enum CodecID audio_codec_id;
 } AVFormatParameters;
 
-#define AVFMT_NOFILE        0x0001 /* no file should be opened */
+//! demuxer will use url_fopen, no opened file should be provided by the caller
+#define AVFMT_NOFILE        0x0001
 #define AVFMT_NEEDNUMBER    0x0002 /* needs '%d' in filename */
 #define AVFMT_SHOW_IDS      0x0008 /* show format stream IDs numbers */
 #define AVFMT_RAWPICTURE    0x0020 /* format wants AVPicture structure for

Modified: trunk/libavformat/utils.c
==============================================================================
--- trunk/libavformat/utils.c	(original)
+++ trunk/libavformat/utils.c	Fri Jan 19 23:54:50 2007
@@ -270,6 +270,9 @@
 
 /**
  * Guess file format.
+ *
+ * @param is_opened whether the file is already opened, determines whether
+ *                  demuxers with or without AVFMT_NOFILE are probed
  */
 AVInputFormat *av_probe_input_format(AVProbeData *pd, int is_opened)
 {




More information about the ffmpeg-cvslog mailing list