Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
aom-rav1e
Commits
832e4f3c
Commit
832e4f3c
authored
Jul 14, 2014
by
Yaowu Xu
Committed by
Gerrit Code Review
Jul 14, 2014
Browse files
Options
Browse Files
Download
Plain Diff
Merge "Silent -wextra warnings"
parents
5179edc0
618e7ef0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
vpxenc.c
vpxenc.c
+4
-3
y4minput.c
y4minput.c
+4
-0
No files found.
vpxenc.c
View file @
832e4f3c
...
...
@@ -965,8 +965,8 @@ static int parse_stream_params(struct VpxEncoderConfig *global,
break
;
/* Update/insert */
assert
(
j
<
ARG_CTRL_CNT_MAX
);
if
(
j
<
ARG_CTRL_CNT_MAX
)
{
assert
(
j
<
(
int
)
ARG_CTRL_CNT_MAX
);
if
(
j
<
(
int
)
ARG_CTRL_CNT_MAX
)
{
config
->
arg_ctrls
[
j
][
0
]
=
ctrl_args_map
[
i
];
config
->
arg_ctrls
[
j
][
1
]
=
arg_parse_enum_or_int
(
&
arg
);
if
(
j
==
config
->
arg_ctrl_cnt
)
...
...
@@ -1517,7 +1517,7 @@ int main(int argc, const char **argv_) {
vpx_image_t
raw
;
int
frame_avail
,
got_data
;
struct
VpxInputContext
input
=
{
0
}
;
struct
VpxInputContext
input
;
struct
VpxEncoderConfig
global
;
struct
stream_state
*
streams
=
NULL
;
char
**
argv
,
**
argi
;
...
...
@@ -1525,6 +1525,7 @@ int main(int argc, const char **argv_) {
int
stream_cnt
=
0
;
int
res
=
0
;
memset
(
&
input
,
0
,
sizeof
(
input
));
exec_name
=
argv_
[
0
];
if
(
argc
<
3
)
...
...
y4minput.c
View file @
832e4f3c
...
...
@@ -683,6 +683,7 @@ static void y4m_convert_444_420jpeg(y4m_input *_y4m, unsigned char *_dst,
static
void
y4m_convert_mono_420jpeg
(
y4m_input
*
_y4m
,
unsigned
char
*
_dst
,
unsigned
char
*
_aux
)
{
int
c_sz
;
(
void
)
_aux
;
_dst
+=
_y4m
->
pic_w
*
_y4m
->
pic_h
;
c_sz
=
((
_y4m
->
pic_w
+
_y4m
->
dst_c_dec_h
-
1
)
/
_y4m
->
dst_c_dec_h
)
*
((
_y4m
->
pic_h
+
_y4m
->
dst_c_dec_v
-
1
)
/
_y4m
->
dst_c_dec_v
);
...
...
@@ -692,6 +693,9 @@ static void y4m_convert_mono_420jpeg(y4m_input *_y4m, unsigned char *_dst,
/*No conversion function needed.*/
static
void
y4m_convert_null
(
y4m_input
*
_y4m
,
unsigned
char
*
_dst
,
unsigned
char
*
_aux
)
{
(
void
)
_y4m
;
(
void
)
_dst
;
(
void
)
_aux
;
}
int
y4m_input_open
(
y4m_input
*
_y4m
,
FILE
*
_fin
,
char
*
_skip
,
int
_nskip
,
...
...
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