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.