Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
aom-rav1e
Commits
4071d167
Commit
4071d167
authored
May 26, 2010
by
John Koleszar
Committed by
Code Review
May 26, 2010
Browse files
Merge "examples: use I420 input for encoders"
parents
0270a790
6b76e3fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/encoder_tmpl.c
View file @
4071d167
...
...
@@ -127,7 +127,7 @@ int main(int argc, char **argv) {
height
=
strtol
(
argv
[
2
],
NULL
,
0
);
if
(
width
<
16
||
width
%
2
||
height
<
16
||
height
%
2
)
die
(
"Invalid resolution: %ldx%ld"
,
width
,
height
);
if
(
!
vpx_img_alloc
(
&
raw
,
VPX_IMG_FMT_
YV12
,
width
,
height
,
1
))
if
(
!
vpx_img_alloc
(
&
raw
,
VPX_IMG_FMT_
I420
,
width
,
height
,
1
))
die
(
"Faile to allocate image"
,
width
,
height
);
if
(
!
(
outfile
=
fopen
(
argv
[
4
],
"wb"
)))
die
(
"Failed to open %s for writing"
,
argv
[
4
]);
...
...
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