summaryrefslogtreecommitdiff
path: root/libavformat/segafilm.c
diff options
context:
space:
mode:
authorDiego Pettenò <flameeyes@gmail.com>2008-10-02 16:03:00 +0000
committerBenoit Fouet <benoit.fouet@free.fr>2008-10-02 16:03:00 +0000
commitfb65d2ca84d79fb1c5a5708555c23e1d289b5c92 (patch)
tree933cef560872486d2c23628aef5bfa37d0eaf315 /libavformat/segafilm.c
parent529dae12f786ed8840a8ccec75d66c7d27cdf9d9 (diff)
downloadffmpeg-fb65d2ca84d79fb1c5a5708555c23e1d289b5c92.tar.gz
Use enum typers instead of int.
Patch by Diego 'Flameeyes' Pettenò: flameeyes gmail Originally committed as revision 15517 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/segafilm.c')
-rw-r--r--libavformat/segafilm.c8
1 files changed, 4 insertions, 4 deletions
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) {