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
fc386f2e
Commit
fc386f2e
authored
Feb 24, 2013
by
Luca Barbato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vorbisdec: cosmetics
Use the commonly used "if (!var)" instead of "if (var == 0)".
parent
11dcecfc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
vorbisdec.c
libavcodec/vorbisdec.c
+2
-2
No files found.
libavcodec/vorbisdec.c
View file @
fc386f2e
...
...
@@ -586,7 +586,7 @@ static int vorbis_parse_setup_hdr_floors(vorbis_context *vc)
floor_setup
->
data
.
t0
.
order
=
get_bits
(
gb
,
8
);
floor_setup
->
data
.
t0
.
rate
=
get_bits
(
gb
,
16
);
floor_setup
->
data
.
t0
.
bark_map_size
=
get_bits
(
gb
,
16
);
if
(
floor_setup
->
data
.
t0
.
bark_map_size
==
0
)
{
if
(
!
floor_setup
->
data
.
t0
.
bark_map_size
)
{
av_log
(
vc
->
avccontext
,
AV_LOG_ERROR
,
"Floor 0 bark map size is 0.
\n
"
);
return
AVERROR_INVALIDDATA
;
...
...
@@ -594,7 +594,7 @@ static int vorbis_parse_setup_hdr_floors(vorbis_context *vc)
floor_setup
->
data
.
t0
.
amplitude_bits
=
get_bits
(
gb
,
6
);
/* zero would result in a div by zero later *
* 2^0 - 1 == 0 */
if
(
floor_setup
->
data
.
t0
.
amplitude_bits
==
0
)
{
if
(
!
floor_setup
->
data
.
t0
.
amplitude_bits
)
{
av_log
(
vc
->
avccontext
,
AV_LOG_ERROR
,
"Floor 0 amplitude bits is 0.
\n
"
);
return
AVERROR_INVALIDDATA
;
...
...
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