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
54e6cf8a
Commit
54e6cf8a
authored
Mar 21, 2012
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adxenc: Use the AVFrame in ADXContext for coded_frame
parent
68fd077f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
adxenc.c
libavcodec/adxenc.c
+2
-8
No files found.
libavcodec/adxenc.c
View file @
54e6cf8a
...
...
@@ -119,7 +119,8 @@ static av_cold int adx_encode_init(AVCodecContext *avctx)
}
avctx
->
frame_size
=
BLOCK_SAMPLES
;
avctx
->
coded_frame
=
avcodec_alloc_frame
();
avcodec_get_frame_defaults
(
&
c
->
frame
);
avctx
->
coded_frame
=
&
c
->
frame
;
/* the cutoff can be adjusted, but this seems to work pretty well */
c
->
cutoff
=
500
;
...
...
@@ -128,12 +129,6 @@ static av_cold int adx_encode_init(AVCodecContext *avctx)
return
0
;
}
static
av_cold
int
adx_encode_close
(
AVCodecContext
*
avctx
)
{
av_freep
(
&
avctx
->
coded_frame
);
return
0
;
}
static
int
adx_encode_frame
(
AVCodecContext
*
avctx
,
uint8_t
*
frame
,
int
buf_size
,
void
*
data
)
{
...
...
@@ -171,7 +166,6 @@ AVCodec ff_adpcm_adx_encoder = {
.
priv_data_size
=
sizeof
(
ADXContext
),
.
init
=
adx_encode_init
,
.
encode
=
adx_encode_frame
,
.
close
=
adx_encode_close
,
.
sample_fmts
=
(
const
enum
AVSampleFormat
[])
{
AV_SAMPLE_FMT_S16
,
AV_SAMPLE_FMT_NONE
},
.
long_name
=
NULL_IF_CONFIG_SMALL
(
"SEGA CRI ADX ADPCM"
),
...
...
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