Commit 7a12c910 authored by michael's avatar michael

Document a few more structure change rules with relation to ABI/API.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@11283 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 63f5898d
...@@ -745,6 +745,12 @@ typedef struct AVPanScan{ ...@@ -745,6 +745,12 @@ typedef struct AVPanScan{
/** /**
* Audio Video Frame. * Audio Video Frame.
* New fields can be added to the end of FF_COMMON_FRAME with minor version
* bumps.
* Removial, reordering and changes to existing fields require a Major
* version bump. No fields should be added into AVFrame before or after
* FF_COMMON_FRAME!
* sizeof(AVFrame) must not be used outside libav*
*/ */
typedef struct AVFrame { typedef struct AVFrame {
FF_COMMON_FRAME FF_COMMON_FRAME
......
...@@ -269,6 +269,13 @@ typedef struct AVIndexEntry { ...@@ -269,6 +269,13 @@ typedef struct AVIndexEntry {
int min_distance; /**< min distance between this and the previous keyframe, used to avoid unneeded searching */ int min_distance; /**< min distance between this and the previous keyframe, used to avoid unneeded searching */
} AVIndexEntry; } AVIndexEntry;
/**
* Stream structure.
* New fields can be added to the end with minor version bumps.
* Removial, reordering and changes to existing fields require a Major
* version bump.
* sizeof(AVStream) must not be used outside libav*
*/
typedef struct AVStream { typedef struct AVStream {
int index; /**< stream index in AVFormatContext */ int index; /**< stream index in AVFormatContext */
int id; /**< format specific stream id */ int id; /**< format specific stream id */
...@@ -343,6 +350,13 @@ typedef struct AVStream { ...@@ -343,6 +350,13 @@ typedef struct AVStream {
#define AV_PROGRAM_RUNNING 1 #define AV_PROGRAM_RUNNING 1
/**
*
* New fields can be added to the end with minor version bumps.
* Removial, reordering and changes to existing fields require a Major
* version bump.
* sizeof(AVProgram) must not be used outside libav*
*/
typedef struct AVProgram { typedef struct AVProgram {
int id; int id;
char *provider_name; ///< Network name for DVB streams char *provider_name; ///< Network name for DVB streams
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment