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
46043962
Commit
46043962
authored
Jul 09, 2012
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
alac: avoid using a double-negative when checking if the frame is compressed
parent
9a6c528e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
alac.c
libavcodec/alac.c
+3
-4
No files found.
libavcodec/alac.c
View file @
46043962
...
...
@@ -298,7 +298,7 @@ static int alac_decode_frame(AVCodecContext *avctx, void *data,
unsigned
int
outputsamples
;
int
hassize
;
unsigned
int
readsamplesize
;
int
is
not
compressed
;
int
is
_
compressed
;
uint8_t
interlacing_shift
;
uint8_t
interlacing_leftweight
;
int
i
,
ch
,
ret
;
...
...
@@ -320,7 +320,7 @@ static int alac_decode_frame(AVCodecContext *avctx, void *data,
alac
->
extra_bits
=
get_bits
(
&
alac
->
gb
,
2
)
<<
3
;
/* whether the frame is compressed */
is
notcompressed
=
get_bits1
(
&
alac
->
gb
);
is
_compressed
=
!
get_bits1
(
&
alac
->
gb
);
if
(
hassize
)
{
/* now read the number of samples as a 32bit integer */
...
...
@@ -350,8 +350,7 @@ static int alac_decode_frame(AVCodecContext *avctx, void *data,
return
-
1
;
}
if
(
!
isnotcompressed
)
{
/* so it is compressed */
if
(
is_compressed
)
{
int16_t
predictor_coef_table
[
MAX_CHANNELS
][
32
];
int
predictor_coef_num
[
MAX_CHANNELS
];
int
prediction_type
[
MAX_CHANNELS
];
...
...
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