# HG changeset patch # User reimar # Date 1169247290 0 # Node ID b8656dd86312a18f9aa2c5a96b9c8f454b9ad172 # Parent a216ebdce1ff573fcf85d025e95a512185465ee7 Attempt to better document AVFMT_NOFILE. diff -r a216ebdce1ff -r b8656dd86312 avformat.h --- a/avformat.h Fri Jan 19 22:52:59 2007 +0000 +++ b/avformat.h Fri Jan 19 22:54:50 2007 +0000 @@ -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 diff -r a216ebdce1ff -r b8656dd86312 utils.c --- a/utils.c Fri Jan 19 22:52:59 2007 +0000 +++ b/utils.c Fri Jan 19 22:54:50 2007 +0000 @@ -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) {