Skip to content
GitLab
Projects
Groups
Snippets
/
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
04db245a
Commit
04db245a
authored
Oct 06, 2014
by
Yaowu Xu
Committed by
Gerrit Code Review
Oct 06, 2014
Browse files
Merge "Change the y4m buffer allocation size"
parents
1b8c57e9
72ef1949
Changes
1
Hide whitespace changes
Inline
Side-by-side
y4minput.c
View file @
04db245a
...
...
@@ -975,9 +975,9 @@ int y4m_input_open(y4m_input *_y4m, FILE *_fin, char *_skip, int _nskip,
+
2
*
((
_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
);
if
(
_y4m
->
bit_depth
==
8
)
_y4m
->
dst_buf
=
(
unsigned
char
*
)
malloc
(
_y4m
->
dst_buf_sz
);
_y4m
->
dst_buf
=
(
unsigned
char
*
)
malloc
(
_y4m
->
dst_buf_
read_
sz
);
else
_y4m
->
dst_buf
=
(
unsigned
char
*
)
malloc
(
2
*
_y4m
->
dst_buf_sz
);
_y4m
->
dst_buf
=
(
unsigned
char
*
)
malloc
(
2
*
_y4m
->
dst_buf_
read_
sz
);
if
(
_y4m
->
aux_buf_sz
>
0
)
_y4m
->
aux_buf
=
(
unsigned
char
*
)
malloc
(
_y4m
->
aux_buf_sz
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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