diff options
author | Philip Gladstone <philipjsg@users.sourceforge.net> | 2002-05-09 01:22:30 +0000 |
---|---|---|
committer | Philip Gladstone <philipjsg@users.sourceforge.net> | 2002-05-09 01:22:30 +0000 |
commit | 4a663d804242200a403a98f580addd6c26503585 (patch) | |
tree | d4d1a11ef07942d4c6b6ff652650aa9a24841698 /libavcodec/avcodec.h | |
parent | afc25d93eafef6ec49d10f6648b9ea167c4077c4 (diff) | |
download | ffmpeg-4a663d804242200a403a98f580addd6c26503585.tar.gz |
* Start using enumerated types (makes debugging much easier)
Originally committed as revision 469 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r-- | libavcodec/avcodec.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index ba711f7627..803963c638 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -39,6 +39,7 @@ enum CodecID { #define CODEC_ID_MSMPEG4 CODEC_ID_MSMPEG4V3 enum CodecType { + CODEC_TYPE_UNKNOWN = -1, CODEC_TYPE_VIDEO, CODEC_TYPE_AUDIO, }; @@ -214,8 +215,8 @@ typedef struct AVCodecContext { /* the following fields are ignored */ void *opaque; /* can be used to carry app specific stuff */ char codec_name[32]; - int codec_type; /* see CODEC_TYPE_xxx */ - int codec_id; /* see CODEC_ID_xxx */ + enum CodecType codec_type; /* see CODEC_TYPE_xxx */ + enum CodecID codec_id; /* see CODEC_ID_xxx */ unsigned int codec_tag; /* codec tag, only used if unknown codec */ } AVCodecContext; |