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
23ba1503
Commit
23ba1503
authored
May 19, 2012
by
Kostya Shishkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
indeo: clear allocated band buffers
parent
a6e4ac40
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ivi_common.c
libavcodec/ivi_common.c
+3
-3
No files found.
libavcodec/ivi_common.c
View file @
23ba1503
...
@@ -212,14 +212,14 @@ av_cold int ff_ivi_init_planes(IVIPlaneDesc *planes, const IVIPicConfig *cfg)
...
@@ -212,14 +212,14 @@ av_cold int ff_ivi_init_planes(IVIPlaneDesc *planes, const IVIPicConfig *cfg)
band
->
width
=
b_width
;
band
->
width
=
b_width
;
band
->
height
=
b_height
;
band
->
height
=
b_height
;
band
->
pitch
=
width_aligned
;
band
->
pitch
=
width_aligned
;
band
->
bufs
[
0
]
=
av_malloc
(
buf_size
);
band
->
bufs
[
0
]
=
av_malloc
z
(
buf_size
);
band
->
bufs
[
1
]
=
av_malloc
(
buf_size
);
band
->
bufs
[
1
]
=
av_malloc
z
(
buf_size
);
if
(
!
band
->
bufs
[
0
]
||
!
band
->
bufs
[
1
])
if
(
!
band
->
bufs
[
0
]
||
!
band
->
bufs
[
1
])
return
AVERROR
(
ENOMEM
);
return
AVERROR
(
ENOMEM
);
/* allocate the 3rd band buffer for scalability mode */
/* allocate the 3rd band buffer for scalability mode */
if
(
cfg
->
luma_bands
>
1
)
{
if
(
cfg
->
luma_bands
>
1
)
{
band
->
bufs
[
2
]
=
av_malloc
(
buf_size
);
band
->
bufs
[
2
]
=
av_malloc
z
(
buf_size
);
if
(
!
band
->
bufs
[
2
])
if
(
!
band
->
bufs
[
2
])
return
AVERROR
(
ENOMEM
);
return
AVERROR
(
ENOMEM
);
}
}
...
...
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