Mercurial > libavcodec.hg
comparison flacenc.c @ 12024:fdafbcef52f5 libavcodec
Fix grammar errors in documentation
author | mru |
---|---|
date | Wed, 30 Jun 2010 15:38:06 +0000 |
parents | 0a36d4b2144b |
children | ee740a4e80c5 |
comparison
equal
deleted
inserted
replaced
12023:c7455450364d | 12024:fdafbcef52f5 |
---|---|
96 DSPContext dsp; | 96 DSPContext dsp; |
97 struct AVMD5 *md5ctx; | 97 struct AVMD5 *md5ctx; |
98 } FlacEncodeContext; | 98 } FlacEncodeContext; |
99 | 99 |
100 /** | 100 /** |
101 * Writes streaminfo metadata block to byte array | 101 * Write streaminfo metadata block to byte array |
102 */ | 102 */ |
103 static void write_streaminfo(FlacEncodeContext *s, uint8_t *header) | 103 static void write_streaminfo(FlacEncodeContext *s, uint8_t *header) |
104 { | 104 { |
105 PutBitContext pb; | 105 PutBitContext pb; |
106 | 106 |
121 flush_put_bits(&pb); | 121 flush_put_bits(&pb); |
122 memcpy(&header[18], s->md5sum, 16); | 122 memcpy(&header[18], s->md5sum, 16); |
123 } | 123 } |
124 | 124 |
125 /** | 125 /** |
126 * Sets blocksize based on samplerate | 126 * Set blocksize based on samplerate |
127 * Chooses the closest predefined blocksize >= BLOCK_TIME_MS milliseconds | 127 * Choose the closest predefined blocksize >= BLOCK_TIME_MS milliseconds |
128 */ | 128 */ |
129 static int select_blocksize(int samplerate, int block_time_ms) | 129 static int select_blocksize(int samplerate, int block_time_ms) |
130 { | 130 { |
131 int i; | 131 int i; |
132 int target; | 132 int target; |