comparison au.c @ 1885:3ffb9763dfc2 libavformat

Fix UNKOWN --> UNKNOWN typo
author diego
date Wed, 07 Mar 2007 00:49:49 +0000
parents 8b062c65fe0d
children 1a3c9056982a
comparison
equal deleted inserted replaced
1884:1792b6c5387b 1885:3ffb9763dfc2
30 #include "avformat.h" 30 #include "avformat.h"
31 #include "allformats.h" 31 #include "allformats.h"
32 #include "riff.h" 32 #include "riff.h"
33 33
34 /* if we don't know the size in advance */ 34 /* if we don't know the size in advance */
35 #define AU_UNKOWN_SIZE ((uint32_t)(~0)) 35 #define AU_UNKNOWN_SIZE ((uint32_t)(~0))
36 36
37 /* The ffmpeg codecs we support, and the IDs they have in the file */ 37 /* The ffmpeg codecs we support, and the IDs they have in the file */
38 static const AVCodecTag codec_au_tags[] = { 38 static const AVCodecTag codec_au_tags[] = {
39 { CODEC_ID_PCM_MULAW, 1 }, 39 { CODEC_ID_PCM_MULAW, 1 },
40 { CODEC_ID_PCM_S16BE, 3 }, 40 { CODEC_ID_PCM_S16BE, 3 },
48 { 48 {
49 if(!enc->codec_tag) 49 if(!enc->codec_tag)
50 return -1; 50 return -1;
51 put_tag(pb, ".snd"); /* magic number */ 51 put_tag(pb, ".snd"); /* magic number */
52 put_be32(pb, 24); /* header size */ 52 put_be32(pb, 24); /* header size */
53 put_be32(pb, AU_UNKOWN_SIZE); /* data size */ 53 put_be32(pb, AU_UNKNOWN_SIZE); /* data size */
54 put_be32(pb, (uint32_t)enc->codec_tag); /* codec ID */ 54 put_be32(pb, (uint32_t)enc->codec_tag); /* codec ID */
55 put_be32(pb, enc->sample_rate); 55 put_be32(pb, enc->sample_rate);
56 put_be32(pb, (uint32_t)enc->channels); 56 put_be32(pb, (uint32_t)enc->channels);
57 return 0; 57 return 0;
58 } 58 }