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
48f2fe15
Commit
48f2fe15
authored
Oct 11, 2016
by
Nathan E. Egge
Committed by
Nathan Egge
Mar 09, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cast allocated pointers to proper types.
Change-Id: I473135d28e1d7f16bd37652ffeaad62dfd9bbe73
parent
7e9f59e0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
ivfdec.c
ivfdec.c
+1
-1
video_reader.c
video_reader.c
+1
-1
No files found.
ivfdec.c
View file @
48f2fe15
...
...
@@ -76,7 +76,7 @@ int ivf_read_frame(FILE *infile, uint8_t **buffer, size_t *bytes_read,
}
if
(
frame_size
>
*
buffer_size
)
{
uint8_t
*
new_buffer
=
realloc
(
*
buffer
,
2
*
frame_size
);
uint8_t
*
new_buffer
=
(
uint8_t
*
)
realloc
(
*
buffer
,
2
*
frame_size
);
if
(
new_buffer
)
{
*
buffer
=
new_buffer
;
...
...
video_reader.c
View file @
48f2fe15
...
...
@@ -40,7 +40,7 @@ AvxVideoReader *aom_video_reader_open(const char *filename) {
if
(
mem_get_le16
(
header
+
4
)
!=
0
)
return
NULL
;
// Wrong IVF version
reader
=
calloc
(
1
,
sizeof
(
*
reader
));
reader
=
(
AvxVideoReader
*
)
calloc
(
1
,
sizeof
(
*
reader
));
if
(
!
reader
)
return
NULL
;
// Can't allocate AvxVideoReader
reader
->
file
=
file
;
...
...
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