Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
b6c420ce
Commit
b6c420ce
authored
Jul 16, 2010
by
David Conrad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vp8: Check for malloc failure
Originally committed as revision 24251 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
a711eb48
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
vp8.c
libavcodec/vp8.c
+3
-0
No files found.
libavcodec/vp8.c
View file @
b6c420ce
...
...
@@ -225,6 +225,9 @@ static int update_dimensions(VP8Context *s, int width, int height)
s
->
intra4x4_pred_mode_base
=
av_mallocz
(
s
->
b4_stride
*
(
4
*
s
->
mb_height
+
1
));
s
->
top_nnz
=
av_mallocz
(
s
->
mb_width
*
sizeof
(
*
s
->
top_nnz
));
if
(
!
s
->
macroblocks_base
||
!
s
->
intra4x4_pred_mode_base
||
!
s
->
top_nnz
)
return
AVERROR
(
ENOMEM
);
s
->
macroblocks
=
s
->
macroblocks_base
+
1
+
s
->
mb_stride
;
s
->
intra4x4_pred_mode
=
s
->
intra4x4_pred_mode_base
+
4
+
s
->
b4_stride
;
...
...
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