Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
87d98748
Commit
87d98748
authored
13 years ago
by
Aneesh Dogra
Committed by
Anton Khirnov
13 years ago
Browse files
Options
Downloads
Patches
Plain Diff
bgmc: K&R cleanup
Signed-off-by:
Anton Khirnov
<
anton@khirnov.net
>
parent
c914038d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libavcodec/bgmc.c
+6
-6
6 additions, 6 deletions
libavcodec/bgmc.c
with
6 additions
and
6 deletions
libavcodec/bgmc.c
+
6
−
6
View file @
87d98748
...
...
@@ -474,7 +474,8 @@ int ff_bgmc_init(AVCodecContext *avctx, uint8_t **cf_lut, int **cf_lut_status)
av_log
(
avctx
,
AV_LOG_ERROR
,
"Allocating buffer memory failed.
\n
"
);
return
AVERROR
(
ENOMEM
);
}
else
{
// initialize lut_status buffer to a value never used to compare against
// initialize lut_status buffer to a value never used to compare
// against
memset
(
*
cf_lut_status
,
-
1
,
sizeof
(
*
cf_lut_status
)
*
LUT_BUFF
);
}
...
...
@@ -494,7 +495,7 @@ void ff_bgmc_end(uint8_t **cf_lut, int **cf_lut_status)
/** Initialize decoding and reads the first value
*/
void
ff_bgmc_decode_init
(
GetBitContext
*
gb
,
unsigned
int
*
h
,
unsigned
int
*
l
,
unsigned
int
*
v
)
unsigned
int
*
h
,
unsigned
int
*
l
,
unsigned
int
*
v
)
{
*
h
=
TOP_VALUE
;
*
l
=
0
;
...
...
@@ -513,9 +514,9 @@ void ff_bgmc_decode_end(GetBitContext *gb)
/** Read and decode a block Gilbert-Moore coded symbol
*/
void
ff_bgmc_decode
(
GetBitContext
*
gb
,
unsigned
int
num
,
int32_t
*
dst
,
int
delta
,
unsigned
int
sx
,
unsigned
int
*
h
,
unsigned
int
*
l
,
unsigned
int
*
v
,
uint8_t
*
cf_lut
,
int
*
cf_lut_status
)
int
delta
,
unsigned
int
sx
,
unsigned
int
*
h
,
unsigned
int
*
l
,
unsigned
int
*
v
,
uint8_t
*
cf_lut
,
int
*
cf_lut_status
)
{
unsigned
int
i
;
uint8_t
*
lut
=
bgmc_lut_getp
(
cf_lut
,
cf_lut_status
,
delta
);
...
...
@@ -567,4 +568,3 @@ void ff_bgmc_decode(GetBitContext *gb, unsigned int num, int32_t *dst,
*
l
=
low
;
*
v
=
value
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment