Mercurial > libavformat.hg
diff segafilm.c @ 3967:4fd67f05bad9 libavformat
Use enum typers instead of int.
Patch by Diego 'Flameeyes' Petten: flameeyes gmail
author | benoit |
---|---|
date | Thu, 02 Oct 2008 16:03:00 +0000 |
parents | 1d3d17de20ba |
children | 549a09cf23fe |
line wrap: on
line diff
--- a/segafilm.c Thu Oct 02 15:52:04 2008 +0000 +++ b/segafilm.c Thu Oct 02 16:03:00 2008 +0000 @@ -46,12 +46,12 @@ int video_stream_index; int audio_stream_index; - unsigned int audio_type; + enum CodecID audio_type; unsigned int audio_samplerate; unsigned int audio_bits; unsigned int audio_channels; - unsigned int video_type; + enum CodecID video_type; unsigned int sample_count; film_sample_t *sample_table; unsigned int current_sample; @@ -115,7 +115,7 @@ else if (film->audio_bits == 16) film->audio_type = CODEC_ID_PCM_S16BE; else - film->audio_type = 0; + film->audio_type = CODEC_ID_NONE; } if (AV_RB32(&scratch[0]) != FDSC_TAG) @@ -124,7 +124,7 @@ if (AV_RB32(&scratch[8]) == CVID_TAG) { film->video_type = CODEC_ID_CINEPAK; } else - film->video_type = 0; + film->video_type = CODEC_ID_NONE; /* initialize the decoder streams */ if (film->video_type) {