From fb65d2ca84d79fb1c5a5708555c23e1d289b5c92 Mon Sep 17 00:00:00 2001 From: Diego Pettenò Date: Thu, 2 Oct 2008 16:03:00 +0000 Subject: Use enum typers instead of int. Patch by Diego 'Flameeyes' Pettenò: flameeyes gmail MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Originally committed as revision 15517 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/segafilm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libavformat/segafilm.c') diff --git a/libavformat/segafilm.c b/libavformat/segafilm.c index 4bc46c2773..1ea296db95 100644 --- a/libavformat/segafilm.c +++ b/libavformat/segafilm.c @@ -46,12 +46,12 @@ typedef struct FilmDemuxContext { 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 @@ static int film_read_header(AVFormatContext *s, 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 @@ static int film_read_header(AVFormatContext *s, 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) { -- cgit v1.2.3