Permalink
Browse files

Move all variable declarations before statements

  • Loading branch information...
1 parent 843e87b commit d997a59dfd3c6406c223bc5948f0068474ea33ea @mstorsjo committed Apr 21, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 wrapper.c
View
@@ -30,6 +30,7 @@ struct encoder_state {
void* E_IF_init(void) {
struct encoder_state* state = (struct encoder_state*) malloc(sizeof(struct encoder_state));
+ int frameType = VOAMRWB_RFC3267;
voGetAMRWBEncAPI(&state->audioApi);
state->memOperator.Alloc = cmnMemAlloc;
state->memOperator.Copy = cmnMemCopy;
@@ -39,7 +40,6 @@ void* E_IF_init(void) {
state->userData.memflag = VO_IMF_USERMEMOPERATOR;
state->userData.memData = (VO_PTR)&state->memOperator;
state->audioApi.Init(&state->handle, VO_AUDIO_CodingAMRWB, &state->userData);
- int frameType = VOAMRWB_RFC3267;
state->audioApi.SetParam(state->handle, VO_PID_AMRWB_FRAMETYPE, &frameType);
return state;
}

0 comments on commit d997a59

Please sign in to comment.