summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2012-03-22 17:05:08 +0200
committerMartin Storsjö <martin@martin.st>2012-03-24 22:17:37 +0200
commite20ad71ebbf9fe1f1a0dbc0c4e98afa8a28dc88c (patch)
tree9e9e9b330670bc0289ccb7b477a71155349c562e /libavformat
parent72dadaa9579faaf94de8df13442f84a09c09594e (diff)
libavformat: Document who sets the AVStream.id field
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/avformat.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index 073ca67afc..2bf03e1bd8 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -547,7 +547,12 @@ typedef struct AVIndexEntry {
*/
typedef struct AVStream {
int index; /**< stream index in AVFormatContext */
- int id; /**< format-specific stream ID */
+ /**
+ * Format-specific stream ID.
+ * decoding: set by libavformat
+ * encoding: set by the user
+ */
+ int id;
AVCodecContext *codec; /**< codec context */
/**
* Real base framerate of the stream.