Mercurial > libavformat.hg
comparison mpegts.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 | 178cc6f9d5ec |
children | bf1b4748cd2e |
comparison
equal
deleted
inserted
replaced
3966:4a3372240319 | 3967:4fd67f05bad9 |
---|---|
932 } | 932 } |
933 | 933 |
934 static AVStream* new_pes_av_stream(PESContext *pes, uint32_t code) | 934 static AVStream* new_pes_av_stream(PESContext *pes, uint32_t code) |
935 { | 935 { |
936 AVStream *st; | 936 AVStream *st; |
937 int codec_type, codec_id; | 937 enum CodecID codec_id; |
938 enum CodecType codec_type; | |
938 | 939 |
939 switch(pes->stream_type){ | 940 switch(pes->stream_type){ |
940 case STREAM_TYPE_AUDIO_MPEG1: | 941 case STREAM_TYPE_AUDIO_MPEG1: |
941 case STREAM_TYPE_AUDIO_MPEG2: | 942 case STREAM_TYPE_AUDIO_MPEG2: |
942 codec_type = CODEC_TYPE_AUDIO; | 943 codec_type = CODEC_TYPE_AUDIO; |