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
e4cb6abb
Commit
e4cb6abb
authored
Nov 12, 2014
by
Thilo Borgmann
Committed by
Vittorio Giovara
Nov 14, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bgmc: fix sizeof arguments
CC: libav-devel@libav.org Bug-Id: CID 608084 / CID 700724
parent
4b39cc1a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
bgmc.c
libavcodec/bgmc.c
+3
-3
No files found.
libavcodec/bgmc.c
View file @
e4cb6abb
...
@@ -460,8 +460,8 @@ static uint8_t *bgmc_lut_getp(uint8_t *lut, int *lut_status, int delta)
...
@@ -460,8 +460,8 @@ static uint8_t *bgmc_lut_getp(uint8_t *lut, int *lut_status, int delta)
av_cold
int
ff_bgmc_init
(
AVCodecContext
*
avctx
,
av_cold
int
ff_bgmc_init
(
AVCodecContext
*
avctx
,
uint8_t
**
cf_lut
,
int
**
cf_lut_status
)
uint8_t
**
cf_lut
,
int
**
cf_lut_status
)
{
{
*
cf_lut
=
av_malloc
(
sizeof
(
*
cf_lut
)
*
LUT_BUFF
*
16
*
LUT_SIZE
);
*
cf_lut
=
av_malloc
(
sizeof
(
*
*
cf_lut
)
*
LUT_BUFF
*
16
*
LUT_SIZE
);
*
cf_lut_status
=
av_malloc
(
sizeof
(
*
cf_lut_status
)
*
LUT_BUFF
);
*
cf_lut_status
=
av_malloc
(
sizeof
(
*
*
cf_lut_status
)
*
LUT_BUFF
);
if
(
!*
cf_lut
||
!*
cf_lut_status
)
{
if
(
!*
cf_lut
||
!*
cf_lut_status
)
{
ff_bgmc_end
(
cf_lut
,
cf_lut_status
);
ff_bgmc_end
(
cf_lut
,
cf_lut_status
);
...
@@ -469,7 +469,7 @@ av_cold int ff_bgmc_init(AVCodecContext *avctx,
...
@@ -469,7 +469,7 @@ av_cold int ff_bgmc_init(AVCodecContext *avctx,
return
AVERROR
(
ENOMEM
);
return
AVERROR
(
ENOMEM
);
}
else
{
}
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
);
memset
(
*
cf_lut_status
,
-
1
,
sizeof
(
*
*
cf_lut_status
)
*
LUT_BUFF
);
}
}
return
0
;
return
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