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
7f261ac8
Commit
7f261ac8
authored
Dec 06, 2012
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
huffyuv: make use of av_fast_padded_malloc()
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
eaa47e74
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
huffyuv.c
libavcodec/huffyuv.c
+2
-3
No files found.
libavcodec/huffyuv.c
View file @
7f261ac8
...
...
@@ -992,13 +992,12 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
AVFrame
*
picture
=
data
;
av_fast_malloc
(
&
s
->
bitstream_buffer
,
av_fast_
padded_
malloc
(
&
s
->
bitstream_buffer
,
&
s
->
bitstream_buffer_size
,
buf_size
+
FF_INPUT_BUFFER_PADDING_SIZE
);
buf_size
);
if
(
!
s
->
bitstream_buffer
)
return
AVERROR
(
ENOMEM
);
memset
(
s
->
bitstream_buffer
+
buf_size
,
0
,
FF_INPUT_BUFFER_PADDING_SIZE
);
s
->
dsp
.
bswap_buf
((
uint32_t
*
)
s
->
bitstream_buffer
,
(
const
uint32_t
*
)
buf
,
buf_size
/
4
);
...
...
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