Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
aom-rav1e
Commits
2a3092f9
Commit
2a3092f9
authored
May 16, 2014
by
Alex Converse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Exit with error when vpxenc cannot correctly scale the input.
Change-Id: I4713406b751da06c41962f444f8873accc4fa044
parent
6c2e88e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
vpxenc.c
vpxenc.c
+4
-0
No files found.
vpxenc.c
View file @
2a3092f9
...
...
@@ -1264,6 +1264,10 @@ static void encode_frame(struct stream_state *stream,
/* Scale if necessary */
if
(
img
&&
(
img
->
d_w
!=
cfg
->
g_w
||
img
->
d_h
!=
cfg
->
g_h
))
{
if
(
img
->
fmt
!=
VPX_IMG_FMT_I420
&&
img
->
fmt
!=
VPX_IMG_FMT_YV12
)
{
fprintf
(
stderr
,
"%s can only scale 4:2:0 8bpp inputs
\n
"
,
exec_name
);
exit
(
EXIT_FAILURE
);
}
if
(
!
stream
->
img
)
stream
->
img
=
vpx_img_alloc
(
NULL
,
VPX_IMG_FMT_I420
,
cfg
->
g_w
,
cfg
->
g_h
,
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