[FFmpeg-cvslog] r15621 - trunk/libavcodec/libvorbis.c
benoit
subversion
Wed Oct 15 09:31:06 CEST 2008
Author: benoit
Date: Wed Oct 15 09:31:06 2008
New Revision: 15621
Log:
Cosmetics: fix indentation after previous commit.
Modified:
trunk/libavcodec/libvorbis.c
Modified: trunk/libavcodec/libvorbis.c
==============================================================================
--- trunk/libavcodec/libvorbis.c (original)
+++ trunk/libavcodec/libvorbis.c Wed Oct 15 09:31:06 2008
@@ -145,19 +145,17 @@ static int oggvorbis_encode_frame(AVCode
int samples = OGGVORBIS_FRAME_SIZE;
float **buffer ;
- buffer = vorbis_analysis_buffer(&context->vd, samples) ;
-
- if(context->vi.channels == 1) {
- for(l = 0 ; l < samples ; l++)
- buffer[0][l]=audio[l]/32768.f;
- } else {
- for(l = 0 ; l < samples ; l++){
- buffer[0][l]=audio[l*2]/32768.f;
- buffer[1][l]=audio[l*2+1]/32768.f;
+ buffer = vorbis_analysis_buffer(&context->vd, samples) ;
+ if(context->vi.channels == 1) {
+ for(l = 0 ; l < samples ; l++)
+ buffer[0][l]=audio[l]/32768.f;
+ } else {
+ for(l = 0 ; l < samples ; l++){
+ buffer[0][l]=audio[l*2]/32768.f;
+ buffer[1][l]=audio[l*2+1]/32768.f;
+ }
}
- }
-
- vorbis_analysis_wrote(&context->vd, samples) ;
+ vorbis_analysis_wrote(&context->vd, samples) ;
} else {
if(!context->eof)
vorbis_analysis_wrote(&context->vd, 0) ;
More information about the ffmpeg-cvslog
mailing list