Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
41bf943f
Commit
41bf943f
authored
Oct 14, 2012
by
Thilo Borgmann
Committed by
Michael Niedermayer
Oct 14, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bgmc: fix sizeof arguments (should fix CIDs: 700724 and 608084)
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
45bd0d15
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 @
41bf943f
...
@@ -458,8 +458,8 @@ static uint8_t *bgmc_lut_getp(uint8_t *lut, int *lut_status, int delta)
...
@@ -458,8 +458,8 @@ static uint8_t *bgmc_lut_getp(uint8_t *lut, int *lut_status, int delta)
/** Initialize the lookup table arrays */
/** Initialize the lookup table arrays */
int
ff_bgmc_init
(
AVCodecContext
*
avctx
,
uint8_t
**
cf_lut
,
int
**
cf_lut_status
)
int
ff_bgmc_init
(
AVCodecContext
*
avctx
,
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
);
...
@@ -467,7 +467,7 @@ int ff_bgmc_init(AVCodecContext *avctx, uint8_t **cf_lut, int **cf_lut_status)
...
@@ -467,7 +467,7 @@ int ff_bgmc_init(AVCodecContext *avctx, uint8_t **cf_lut, int **cf_lut_status)
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