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
60c4a31c
Commit
60c4a31c
authored
Jul 18, 2007
by
Vitor Sessak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Yet more cosmetics
Originally committed as revision 9737 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
10024d44
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
alac.c
libavcodec/alac.c
+4
-9
No files found.
libavcodec/alac.c
View file @
60c4a31c
...
@@ -321,9 +321,7 @@ static void predictor_decompress_fir_adapt(int32_t *error_buffer,
...
@@ -321,9 +321,7 @@ static void predictor_decompress_fir_adapt(int32_t *error_buffer,
int32_t
val
;
int32_t
val
;
val
=
buffer_out
[
i
]
+
error_buffer
[
i
+
1
];
val
=
buffer_out
[
i
]
+
error_buffer
[
i
+
1
];
val
=
SIGN_EXTENDED32
(
val
,
readsamplesize
);
val
=
SIGN_EXTENDED32
(
val
,
readsamplesize
);
buffer_out
[
i
+
1
]
=
val
;
buffer_out
[
i
+
1
]
=
val
;
}
}
...
@@ -342,7 +340,6 @@ static void predictor_decompress_fir_adapt(int32_t *error_buffer,
...
@@ -342,7 +340,6 @@ static void predictor_decompress_fir_adapt(int32_t *error_buffer,
}
}
#endif
#endif
/* general case */
/* general case */
if
(
predictor_coef_num
>
0
)
{
if
(
predictor_coef_num
>
0
)
{
for
(
i
=
predictor_coef_num
+
1
;
i
<
output_size
;
i
++
)
{
for
(
i
=
predictor_coef_num
+
1
;
i
<
output_size
;
i
++
)
{
...
@@ -561,8 +558,8 @@ static int alac_decode_frame(AVCodecContext *avctx,
...
@@ -561,8 +558,8 @@ static int alac_decode_frame(AVCodecContext *avctx,
prediction_quantitization
[
chan
]);
prediction_quantitization
[
chan
]);
}
else
{
}
else
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"FIXME: unhandled prediction type: %i
\n
"
,
prediction_type
[
chan
]);
av_log
(
avctx
,
AV_LOG_ERROR
,
"FIXME: unhandled prediction type: %i
\n
"
,
prediction_type
[
chan
]);
/*
i think the only other prediction type (or perhaps this is just a
/*
I think the only other prediction type (or perhaps this is
* boolean?) runs adaptive fir twice.. like:
*
just a
boolean?) runs adaptive fir twice.. like:
* predictor_decompress_fir_adapt(predictor_error, tempout, ...)
* predictor_decompress_fir_adapt(predictor_error, tempout, ...)
* predictor_decompress_fir_adapt(predictor_error, outputsamples ...)
* predictor_decompress_fir_adapt(predictor_error, outputsamples ...)
* little strange..
* little strange..
...
@@ -573,7 +570,7 @@ static int alac_decode_frame(AVCodecContext *avctx,
...
@@ -573,7 +570,7 @@ static int alac_decode_frame(AVCodecContext *avctx,
/* not compressed, easy case */
/* not compressed, easy case */
if
(
alac
->
setinfo_sample_size
<=
16
)
{
if
(
alac
->
setinfo_sample_size
<=
16
)
{
int
i
,
chan
;
int
i
,
chan
;
for
(
chan
=
0
;
chan
<
channels
;
chan
++
)
{
for
(
chan
=
0
;
chan
<
channels
;
chan
++
)
for
(
i
=
0
;
i
<
outputsamples
;
i
++
)
{
for
(
i
=
0
;
i
<
outputsamples
;
i
++
)
{
int32_t
audiobits
;
int32_t
audiobits
;
...
@@ -582,10 +579,9 @@ static int alac_decode_frame(AVCodecContext *avctx,
...
@@ -582,10 +579,9 @@ static int alac_decode_frame(AVCodecContext *avctx,
alac
->
outputsamples_buffer
[
chan
][
i
]
=
audiobits
;
alac
->
outputsamples_buffer
[
chan
][
i
]
=
audiobits
;
}
}
}
}
else
{
}
else
{
int
i
,
chan
;
int
i
,
chan
;
for
(
chan
=
0
;
chan
<
channels
;
chan
++
)
{
for
(
chan
=
0
;
chan
<
channels
;
chan
++
)
for
(
i
=
0
;
i
<
outputsamples
;
i
++
)
{
for
(
i
=
0
;
i
<
outputsamples
;
i
++
)
{
int32_t
audiobits
;
int32_t
audiobits
;
...
@@ -598,7 +594,6 @@ static int alac_decode_frame(AVCodecContext *avctx,
...
@@ -598,7 +594,6 @@ static int alac_decode_frame(AVCodecContext *avctx,
alac
->
outputsamples_buffer
[
chan
][
i
]
=
audiobits
;
alac
->
outputsamples_buffer
[
chan
][
i
]
=
audiobits
;
}
}
}
}
}
/* wasted_bytes = 0; */
/* wasted_bytes = 0; */
interlacing_shift
=
0
;
interlacing_shift
=
0
;
...
...
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