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
dc5c029f
Commit
dc5c029f
authored
Jun 06, 2013
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sonicenc: don't allocate unused avctx->coded_frame
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
5285a754
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
6 deletions
+0
-6
sonic.c
libavcodec/sonic.c
+0
-6
No files found.
libavcodec/sonic.c
View file @
dc5c029f
...
...
@@ -596,10 +596,6 @@ static av_cold int sonic_encode_init(AVCodecContext *avctx)
av_log
(
avctx
,
AV_LOG_INFO
,
"Sonic: ver: %d ls: %d dr: %d taps: %d block: %d frame: %d downsamp: %d
\n
"
,
version
,
s
->
lossless
,
s
->
decorrelation
,
s
->
num_taps
,
s
->
block_align
,
s
->
frame_size
,
s
->
downsampling
);
avctx
->
coded_frame
=
avcodec_alloc_frame
();
if
(
!
avctx
->
coded_frame
)
return
AVERROR
(
ENOMEM
);
avctx
->
coded_frame
->
key_frame
=
1
;
avctx
->
frame_size
=
s
->
block_align
*
s
->
downsampling
;
return
0
;
...
...
@@ -610,8 +606,6 @@ static av_cold int sonic_encode_close(AVCodecContext *avctx)
SonicContext
*
s
=
avctx
->
priv_data
;
int
i
;
av_freep
(
&
avctx
->
coded_frame
);
for
(
i
=
0
;
i
<
s
->
channels
;
i
++
)
av_free
(
s
->
coded_samples
[
i
]);
...
...
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