提交 bb2f13c1 编写于 作者: M Michael Niedermayer

rename missed CodecID to AVCodecID

Signed-off-by: NMichael Niedermayer <michaelni@gmx.at>
上级 2fc7c818
...@@ -92,7 +92,7 @@ ...@@ -92,7 +92,7 @@
* If you add a codec ID to this list, add it so that * If you add a codec ID to this list, add it so that
* 1. no value of a existing codec ID changes (that would break ABI), * 1. no value of a existing codec ID changes (that would break ABI),
* 2. Give it a value which when taken as ASCII is recognized uniquely by a human as this specific codec. * 2. Give it a value which when taken as ASCII is recognized uniquely by a human as this specific codec.
* This ensures that 2 forks can independently add CodecIDs without producing conflicts. * This ensures that 2 forks can independently add AVCodecIDs without producing conflicts.
*/ */
enum AVCodecID { enum AVCodecID {
AV_CODEC_ID_NONE, AV_CODEC_ID_NONE,
......
...@@ -163,7 +163,7 @@ static const AVOption options[] = { ...@@ -163,7 +163,7 @@ static const AVOption options[] = {
* Helper functions * Helper functions
****************************************************************************/ ****************************************************************************/
static inline BC_MEDIA_SUBTYPE id2subtype(CHDContext *priv, enum CodecID id) static inline BC_MEDIA_SUBTYPE id2subtype(CHDContext *priv, enum AVCodecID id)
{ {
switch (id) { switch (id) {
case AV_CODEC_ID_MPEG4: case AV_CODEC_ID_MPEG4:
......
...@@ -92,7 +92,7 @@ static enum PixelFormat dshow_pixfmt(DWORD biCompression, WORD biBitCount) ...@@ -92,7 +92,7 @@ static enum PixelFormat dshow_pixfmt(DWORD biCompression, WORD biBitCount)
return PIX_FMT_NONE; return PIX_FMT_NONE;
} }
static enum CodecID dshow_codecid(DWORD biCompression) static enum AVCodecID dshow_codecid(DWORD biCompression)
{ {
switch(biCompression) { switch(biCompression) {
case MKTAG('d', 'v', 's', 'd'): case MKTAG('d', 'v', 's', 'd'):
...@@ -639,7 +639,7 @@ error: ...@@ -639,7 +639,7 @@ error:
return ret; return ret;
} }
static enum CodecID waveform_codec_id(enum AVSampleFormat sample_fmt) static enum AVCodecID waveform_codec_id(enum AVSampleFormat sample_fmt)
{ {
switch (sample_fmt) { switch (sample_fmt) {
case AV_SAMPLE_FMT_U8: return AV_CODEC_ID_PCM_U8; case AV_SAMPLE_FMT_U8: return AV_CODEC_ID_PCM_U8;
......
...@@ -48,7 +48,7 @@ typedef struct { ...@@ -48,7 +48,7 @@ typedef struct {
typedef struct { typedef struct {
ALCenum al_fmt; ALCenum al_fmt;
enum CodecID codec_id; enum AVCodecID codec_id;
int channels; int channels;
} al_format_info; } al_format_info;
......
...@@ -34,7 +34,7 @@ typedef struct { ...@@ -34,7 +34,7 @@ typedef struct {
int packets; int packets;
} CAFContext; } CAFContext;
static uint32_t codec_flags(enum CodecID codec_id) { static uint32_t codec_flags(enum AVCodecID codec_id) {
switch (codec_id) { switch (codec_id) {
case AV_CODEC_ID_PCM_F32BE: case AV_CODEC_ID_PCM_F32BE:
case AV_CODEC_ID_PCM_F64BE: case AV_CODEC_ID_PCM_F64BE:
...@@ -51,7 +51,7 @@ static uint32_t codec_flags(enum CodecID codec_id) { ...@@ -51,7 +51,7 @@ static uint32_t codec_flags(enum CodecID codec_id) {
} }
} }
static uint32_t samples_per_packet(enum CodecID codec_id, int channels) { static uint32_t samples_per_packet(enum AVCodecID codec_id, int channels) {
switch (codec_id) { switch (codec_id) {
case AV_CODEC_ID_PCM_S8: case AV_CODEC_ID_PCM_S8:
case AV_CODEC_ID_PCM_S16LE: case AV_CODEC_ID_PCM_S16LE:
......
...@@ -870,7 +870,7 @@ static int mov_read_fiel(MOVContext *c, AVIOContext *pb, MOVAtom atom) ...@@ -870,7 +870,7 @@ static int mov_read_fiel(MOVContext *c, AVIOContext *pb, MOVAtom atom)
/* FIXME modify qdm2/svq3/h264 decoders to take full atom as extradata */ /* FIXME modify qdm2/svq3/h264 decoders to take full atom as extradata */
static int mov_read_extradata(MOVContext *c, AVIOContext *pb, MOVAtom atom, static int mov_read_extradata(MOVContext *c, AVIOContext *pb, MOVAtom atom,
enum CodecID codec_id) enum AVCodecID codec_id)
{ {
AVStream *st; AVStream *st;
uint64_t size; uint64_t size;
......
...@@ -348,7 +348,7 @@ static int mov_write_esds_tag(AVIOContext *pb, MOVTrack *track) // Basic ...@@ -348,7 +348,7 @@ static int mov_write_esds_tag(AVIOContext *pb, MOVTrack *track) // Basic
return update_size(pb, pos); return update_size(pb, pos);
} }
static int mov_pcm_le_gt16(enum CodecID codec_id) static int mov_pcm_le_gt16(enum AVCodecID codec_id)
{ {
return codec_id == AV_CODEC_ID_PCM_S24LE || return codec_id == AV_CODEC_ID_PCM_S24LE ||
codec_id == AV_CODEC_ID_PCM_S32LE || codec_id == AV_CODEC_ID_PCM_S32LE ||
......
...@@ -733,7 +733,7 @@ void ff_get_guid(AVIOContext *s, ff_asf_guid *g) ...@@ -733,7 +733,7 @@ void ff_get_guid(AVIOContext *s, ff_asf_guid *g)
memset(*g, 0, sizeof(*g)); memset(*g, 0, sizeof(*g));
} }
enum CodecID ff_codec_guid_get_id(const AVCodecGuid *guids, ff_asf_guid guid) enum AVCodecID ff_codec_guid_get_id(const AVCodecGuid *guids, ff_asf_guid guid)
{ {
int i; int i;
for (i = 0; guids[i].id != AV_CODEC_ID_NONE; i++) { for (i = 0; guids[i].id != AV_CODEC_ID_NONE; i++) {
......
...@@ -75,11 +75,11 @@ static av_always_inline int ff_guidcmp(const void *g1, const void *g2) ...@@ -75,11 +75,11 @@ static av_always_inline int ff_guidcmp(const void *g1, const void *g2)
void ff_get_guid(AVIOContext *s, ff_asf_guid *g); void ff_get_guid(AVIOContext *s, ff_asf_guid *g);
typedef struct { typedef struct {
enum CodecID id; enum AVCodecID id;
ff_asf_guid guid; ff_asf_guid guid;
} AVCodecGuid; } AVCodecGuid;
enum CodecID ff_codec_guid_get_id(const AVCodecGuid *guids, ff_asf_guid guid); enum AVCodecID ff_codec_guid_get_id(const AVCodecGuid *guids, ff_asf_guid guid);
extern const AVCodecGuid ff_codec_wav_guids[]; extern const AVCodecGuid ff_codec_wav_guids[];
......
...@@ -113,7 +113,7 @@ static int write_pad(AVIOContext *pb, int size) ...@@ -113,7 +113,7 @@ static int write_pad(AVIOContext *pb, int size)
return 0; return 0;
} }
static const ff_asf_guid *get_codec_guid(enum CodecID id, const AVCodecGuid *av_guid) static const ff_asf_guid *get_codec_guid(enum AVCodecID id, const AVCodecGuid *av_guid)
{ {
int i; int i;
for (i = 0; av_guid[i].id != AV_CODEC_ID_NONE; i++) { for (i = 0; av_guid[i].id != AV_CODEC_ID_NONE; i++) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册