Mercurial > libavcodec.hg
comparison libvorbis.c @ 8029:e50d7ac76945 libavcodec
Cosmetics: fix indentation after previous commit.
author | benoit |
---|---|
date | Wed, 15 Oct 2008 07:31:06 +0000 |
parents | 66ff451487a7 |
children | 5b7d5a33a3e2 |
comparison
equal
deleted
inserted
replaced
8028:66ff451487a7 | 8029:e50d7ac76945 |
---|---|
143 | 143 |
144 if(data) { | 144 if(data) { |
145 int samples = OGGVORBIS_FRAME_SIZE; | 145 int samples = OGGVORBIS_FRAME_SIZE; |
146 float **buffer ; | 146 float **buffer ; |
147 | 147 |
148 buffer = vorbis_analysis_buffer(&context->vd, samples) ; | 148 buffer = vorbis_analysis_buffer(&context->vd, samples) ; |
149 | 149 if(context->vi.channels == 1) { |
150 if(context->vi.channels == 1) { | 150 for(l = 0 ; l < samples ; l++) |
151 for(l = 0 ; l < samples ; l++) | 151 buffer[0][l]=audio[l]/32768.f; |
152 buffer[0][l]=audio[l]/32768.f; | 152 } else { |
153 } else { | 153 for(l = 0 ; l < samples ; l++){ |
154 for(l = 0 ; l < samples ; l++){ | 154 buffer[0][l]=audio[l*2]/32768.f; |
155 buffer[0][l]=audio[l*2]/32768.f; | 155 buffer[1][l]=audio[l*2+1]/32768.f; |
156 buffer[1][l]=audio[l*2+1]/32768.f; | 156 } |
157 } | 157 } |
158 } | 158 vorbis_analysis_wrote(&context->vd, samples) ; |
159 | |
160 vorbis_analysis_wrote(&context->vd, samples) ; | |
161 } else { | 159 } else { |
162 if(!context->eof) | 160 if(!context->eof) |
163 vorbis_analysis_wrote(&context->vd, 0) ; | 161 vorbis_analysis_wrote(&context->vd, 0) ; |
164 context->eof = 1; | 162 context->eof = 1; |
165 } | 163 } |