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
e30a37e9
Commit
e30a37e9
authored
Mar 30, 2018
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/mpc8: get frame output buffer right before it is actually needed
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
cc402282
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
mpc8.c
libavcodec/mpc8.c
+4
-5
No files found.
libavcodec/mpc8.c
View file @
e30a37e9
...
...
@@ -250,11 +250,6 @@ static int mpc8_decode_frame(AVCodecContext * avctx, void *data,
int
maxband
,
keyframe
;
int
last
[
2
];
/* get output buffer */
frame
->
nb_samples
=
MPC_FRAME_SIZE
;
if
((
res
=
ff_get_buffer
(
avctx
,
frame
,
0
))
<
0
)
return
res
;
keyframe
=
c
->
cur_frame
==
0
;
if
(
keyframe
){
...
...
@@ -415,6 +410,10 @@ static int mpc8_decode_frame(AVCodecContext * avctx, void *data,
}
}
frame
->
nb_samples
=
MPC_FRAME_SIZE
;
if
((
res
=
ff_get_buffer
(
avctx
,
frame
,
0
))
<
0
)
return
res
;
ff_mpc_dequantize_and_synth
(
c
,
maxband
-
1
,
(
int16_t
**
)
frame
->
extended_data
,
avctx
->
channels
);
...
...
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