# HG changeset patch # User philipjsg # Date 1020907350 0 # Node ID 8187bb132d85379858200e8b38c3ef2b2090e5a7 # Parent 0eca28d16cbddfe3f70b188a236f4cb2f98dedef * Start using enumerated types (makes debugging much easier) diff -r 0eca28d16cbd -r 8187bb132d85 avcodec.h --- a/avcodec.h Tue May 07 17:55:02 2002 +0000 +++ b/avcodec.h Thu May 09 01:22:30 2002 +0000 @@ -39,6 +39,7 @@ #define CODEC_ID_MSMPEG4 CODEC_ID_MSMPEG4V3 enum CodecType { + CODEC_TYPE_UNKNOWN = -1, CODEC_TYPE_VIDEO, CODEC_TYPE_AUDIO, }; @@ -214,8 +215,8 @@ /* 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;