Browse Source

lavf: properly document the distinction between flags and ctx_flags

tags/n2.3
Anton Khirnov 11 years ago
parent
commit
a738540366
1 changed files with 9 additions and 1 deletions
  1. +9
    -1
      libavformat/avformat.h

+ 9
- 1
libavformat/avformat.h View File

@@ -927,7 +927,11 @@ typedef struct AVFormatContext {
AVIOContext *pb;

/* stream info */
int ctx_flags; /**< Format-specific flags, see AVFMTCTX_xx */
/**
* Flags signalling stream properties. A combination of AVFMTCTX_*.
* Set by libavformat.
*/
int ctx_flags;

/**
* Number of elements in AVFormatContext.streams.
@@ -985,6 +989,10 @@ typedef struct AVFormatContext {
unsigned int packet_size;
int max_delay;

/**
* Flags modifying the (de)muxer behaviour. A combination of AVFMT_FLAG_*.
* Set by the user before avformat_open_input() / avformat_write_header().
*/
int flags;
#define AVFMT_FLAG_GENPTS 0x0001 ///< Generate missing pts even if it requires parsing future frames.
#define AVFMT_FLAG_IGNIDX 0x0002 ///< Ignore index.


Loading…
Cancel
Save