Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
aa33d809
Commit
aa33d809
authored
Aug 30, 2007
by
Vitor Sessak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename function
Originally committed as revision 10265 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
321c3138
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
alac.c
libavcodec/alac.c
+5
-5
No files found.
libavcodec/alac.c
View file @
aa33d809
...
...
@@ -269,7 +269,7 @@ static void bastardized_rice_decompress(ALACContext *alac,
}
}
static
inline
int32_t
sign_extended
32
(
int32_t
val
,
int
bits
)
static
inline
int32_t
extend_sign
32
(
int32_t
val
,
int
bits
)
{
return
(
val
<<
(
32
-
bits
))
>>
(
32
-
bits
);
}
...
...
@@ -313,7 +313,7 @@ static void predictor_decompress_fir_adapt(int32_t *error_buffer,
prev_value
=
buffer_out
[
i
];
error_value
=
error_buffer
[
i
+
1
];
buffer_out
[
i
+
1
]
=
sign_extended
32
((
prev_value
+
error_value
),
readsamplesize
);
extend_sign
32
((
prev_value
+
error_value
),
readsamplesize
);
}
return
;
}
...
...
@@ -324,7 +324,7 @@ static void predictor_decompress_fir_adapt(int32_t *error_buffer,
int32_t
val
;
val
=
buffer_out
[
i
]
+
error_buffer
[
i
+
1
];
val
=
sign_extended
32
(
val
,
readsamplesize
);
val
=
extend_sign
32
(
val
,
readsamplesize
);
buffer_out
[
i
+
1
]
=
val
;
}
...
...
@@ -359,7 +359,7 @@ static void predictor_decompress_fir_adapt(int32_t *error_buffer,
outval
=
(
1
<<
(
predictor_quantitization
-
1
))
+
sum
;
outval
=
outval
>>
predictor_quantitization
;
outval
=
outval
+
buffer_out
[
0
]
+
error_val
;
outval
=
sign_extended
32
(
outval
,
readsamplesize
);
outval
=
extend_sign
32
(
outval
,
readsamplesize
);
buffer_out
[
predictor_coef_num
+
1
]
=
outval
;
...
...
@@ -573,7 +573,7 @@ static int alac_decode_frame(AVCodecContext *avctx,
int32_t
audiobits
;
audiobits
=
get_bits
(
&
alac
->
gb
,
alac
->
setinfo_sample_size
);
audiobits
=
sign_extended
32
(
audiobits
,
readsamplesize
);
audiobits
=
extend_sign
32
(
audiobits
,
readsamplesize
);
alac
->
outputsamples_buffer
[
chan
][
i
]
=
audiobits
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment