comparison nsvdec.c @ 5290:0d5653941bf9 libavformat

Make AVCodecTag.id enum CodecID and use CODEC_ID_NONE instead of 0.
author cehoyos
date Fri, 16 Oct 2009 14:46:06 +0000
parents 33a244b7ca65
children c35e1d2373c7
comparison
equal deleted inserted replaced
5289:269fd2e634ba 5290:0d5653941bf9
199 { CODEC_ID_VP4, MKTAG('V', 'P', '4', ' ') }, 199 { CODEC_ID_VP4, MKTAG('V', 'P', '4', ' ') },
200 { CODEC_ID_VP4, MKTAG('V', 'P', '4', '0') }, 200 { CODEC_ID_VP4, MKTAG('V', 'P', '4', '0') },
201 */ 201 */
202 { CODEC_ID_MPEG4, MKTAG('X', 'V', 'I', 'D') }, /* cf sample xvid decoder from nsv_codec_sdk.zip */ 202 { CODEC_ID_MPEG4, MKTAG('X', 'V', 'I', 'D') }, /* cf sample xvid decoder from nsv_codec_sdk.zip */
203 { CODEC_ID_RAWVIDEO, MKTAG('R', 'G', 'B', '3') }, 203 { CODEC_ID_RAWVIDEO, MKTAG('R', 'G', 'B', '3') },
204 { 0, 0 }, 204 { CODEC_ID_NONE, 0 },
205 }; 205 };
206 206
207 static const AVCodecTag nsv_codec_audio_tags[] = { 207 static const AVCodecTag nsv_codec_audio_tags[] = {
208 { CODEC_ID_MP3, MKTAG('M', 'P', '3', ' ') }, 208 { CODEC_ID_MP3, MKTAG('M', 'P', '3', ' ') },
209 { CODEC_ID_AAC, MKTAG('A', 'A', 'C', ' ') }, 209 { CODEC_ID_AAC, MKTAG('A', 'A', 'C', ' ') },
210 { CODEC_ID_AAC, MKTAG('A', 'A', 'C', 'P') }, 210 { CODEC_ID_AAC, MKTAG('A', 'A', 'C', 'P') },
211 { CODEC_ID_SPEEX, MKTAG('S', 'P', 'X', ' ') }, 211 { CODEC_ID_SPEEX, MKTAG('S', 'P', 'X', ' ') },
212 { CODEC_ID_PCM_U16LE, MKTAG('P', 'C', 'M', ' ') }, 212 { CODEC_ID_PCM_U16LE, MKTAG('P', 'C', 'M', ' ') },
213 { 0, 0 }, 213 { CODEC_ID_NONE, 0 },
214 }; 214 };
215 215
216 //static int nsv_load_index(AVFormatContext *s); 216 //static int nsv_load_index(AVFormatContext *s);
217 static int nsv_read_chunk(AVFormatContext *s, int fill_header); 217 static int nsv_read_chunk(AVFormatContext *s, int fill_header);
218 218