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
b2939a75
Commit
b2939a75
authored
Sep 08, 2016
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
blockdsp: Change type of array stride parameters to ptrdiff_t
ptrdiff_t is the correct type for array strides and similar.
parent
3281d823
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
blockdsp.c
libavcodec/blockdsp.c
+4
-2
blockdsp.h
libavcodec/blockdsp.h
+2
-1
No files found.
libavcodec/blockdsp.c
View file @
b2939a75
...
@@ -35,7 +35,8 @@ static void clear_blocks_8_c(int16_t *blocks)
...
@@ -35,7 +35,8 @@ static void clear_blocks_8_c(int16_t *blocks)
memset
(
blocks
,
0
,
sizeof
(
int16_t
)
*
6
*
64
);
memset
(
blocks
,
0
,
sizeof
(
int16_t
)
*
6
*
64
);
}
}
static
void
fill_block16_c
(
uint8_t
*
block
,
uint8_t
value
,
int
line_size
,
int
h
)
static
void
fill_block16_c
(
uint8_t
*
block
,
uint8_t
value
,
ptrdiff_t
line_size
,
int
h
)
{
{
int
i
;
int
i
;
...
@@ -45,7 +46,8 @@ static void fill_block16_c(uint8_t *block, uint8_t value, int line_size, int h)
...
@@ -45,7 +46,8 @@ static void fill_block16_c(uint8_t *block, uint8_t value, int line_size, int h)
}
}
}
}
static
void
fill_block8_c
(
uint8_t
*
block
,
uint8_t
value
,
int
line_size
,
int
h
)
static
void
fill_block8_c
(
uint8_t
*
block
,
uint8_t
value
,
ptrdiff_t
line_size
,
int
h
)
{
{
int
i
;
int
i
;
...
...
libavcodec/blockdsp.h
View file @
b2939a75
...
@@ -19,6 +19,7 @@
...
@@ -19,6 +19,7 @@
#ifndef AVCODEC_BLOCKDSP_H
#ifndef AVCODEC_BLOCKDSP_H
#define AVCODEC_BLOCKDSP_H
#define AVCODEC_BLOCKDSP_H
#include <stddef.h>
#include <stdint.h>
#include <stdint.h>
#include "avcodec.h"
#include "avcodec.h"
...
@@ -29,7 +30,7 @@
...
@@ -29,7 +30,7 @@
* h for op_pixels_func is limited to { width / 2, width },
* h for op_pixels_func is limited to { width / 2, width },
* but never larger than 16 and never smaller than 4. */
* but never larger than 16 and never smaller than 4. */
typedef
void
(
*
op_fill_func
)(
uint8_t
*
block
/* align width (8 or 16) */
,
typedef
void
(
*
op_fill_func
)(
uint8_t
*
block
/* align width (8 or 16) */
,
uint8_t
value
,
in
t
line_size
,
int
h
);
uint8_t
value
,
ptrdiff_
t
line_size
,
int
h
);
typedef
struct
BlockDSPContext
{
typedef
struct
BlockDSPContext
{
void
(
*
clear_block
)(
int16_t
*
block
/* align 16 */
);
void
(
*
clear_block
)(
int16_t
*
block
/* align 16 */
);
...
...
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