mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-24 16:22:37 +00:00
Cosmetics: fix indentation after previous commit.
Originally committed as revision 15621 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
9c8f0768e3
commit
a6080be7a2
@ -145,19 +145,17 @@ static int oggvorbis_encode_frame(AVCodecContext *avccontext,
|
|||||||
int samples = OGGVORBIS_FRAME_SIZE;
|
int samples = OGGVORBIS_FRAME_SIZE;
|
||||||
float **buffer ;
|
float **buffer ;
|
||||||
|
|
||||||
buffer = vorbis_analysis_buffer(&context->vd, samples) ;
|
buffer = vorbis_analysis_buffer(&context->vd, samples) ;
|
||||||
|
if(context->vi.channels == 1) {
|
||||||
if(context->vi.channels == 1) {
|
for(l = 0 ; l < samples ; l++)
|
||||||
for(l = 0 ; l < samples ; l++)
|
buffer[0][l]=audio[l]/32768.f;
|
||||||
buffer[0][l]=audio[l]/32768.f;
|
} else {
|
||||||
} else {
|
for(l = 0 ; l < samples ; l++){
|
||||||
for(l = 0 ; l < samples ; l++){
|
buffer[0][l]=audio[l*2]/32768.f;
|
||||||
buffer[0][l]=audio[l*2]/32768.f;
|
buffer[1][l]=audio[l*2+1]/32768.f;
|
||||||
buffer[1][l]=audio[l*2+1]/32768.f;
|
}
|
||||||
}
|
}
|
||||||
}
|
vorbis_analysis_wrote(&context->vd, samples) ;
|
||||||
|
|
||||||
vorbis_analysis_wrote(&context->vd, samples) ;
|
|
||||||
} else {
|
} else {
|
||||||
if(!context->eof)
|
if(!context->eof)
|
||||||
vorbis_analysis_wrote(&context->vd, 0) ;
|
vorbis_analysis_wrote(&context->vd, 0) ;
|
||||||
|
Loading…
Reference in New Issue
Block a user