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
91983971
Commit
91983971
authored
Jan 06, 2015
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/ffv1enc: Fix incompatible pointer type warning
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
3b3782d7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
ffv1enc.c
libavcodec/ffv1enc.c
+5
-5
No files found.
libavcodec/ffv1enc.c
View file @
91983971
...
...
@@ -1017,7 +1017,7 @@ static void encode_slice_header(FFV1Context *f, FFV1Context *fs)
}
}
static
void
choose_rct_params
(
FFV1Context
*
fs
,
uint8_t
*
src
[
3
],
const
int
stride
[
3
],
int
w
,
int
h
)
static
void
choose_rct_params
(
FFV1Context
*
fs
,
const
uint8_t
*
src
[
3
],
const
int
stride
[
3
],
int
w
,
int
h
)
{
#define NB_Y_COEFF 15
static
const
int
rct_y_coeff
[
15
][
2
]
=
{
...
...
@@ -1053,14 +1053,14 @@ static void choose_rct_params(FFV1Context *fs, uint8_t *src[3], const int stride
int
b
,
g
,
r
;
int
ab
,
ag
,
ar
;
if
(
lbd
)
{
unsigned
v
=
*
((
uint32_t
*
)(
src
[
0
]
+
x
*
4
+
stride
[
0
]
*
y
));
unsigned
v
=
*
((
const
uint32_t
*
)(
src
[
0
]
+
x
*
4
+
stride
[
0
]
*
y
));
b
=
v
&
0xFF
;
g
=
(
v
>>
8
)
&
0xFF
;
r
=
(
v
>>
16
)
&
0xFF
;
}
else
{
b
=
*
((
uint16_t
*
)(
src
[
0
]
+
x
*
2
+
stride
[
0
]
*
y
));
g
=
*
((
uint16_t
*
)(
src
[
1
]
+
x
*
2
+
stride
[
1
]
*
y
));
r
=
*
((
uint16_t
*
)(
src
[
2
]
+
x
*
2
+
stride
[
2
]
*
y
));
b
=
*
((
const
uint16_t
*
)(
src
[
0
]
+
x
*
2
+
stride
[
0
]
*
y
));
g
=
*
((
const
uint16_t
*
)(
src
[
1
]
+
x
*
2
+
stride
[
1
]
*
y
));
r
=
*
((
const
uint16_t
*
)(
src
[
2
]
+
x
*
2
+
stride
[
2
]
*
y
));
}
ar
=
r
-
lastr
;
...
...
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