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
69d766da
Commit
69d766da
authored
Jan 03, 2012
by
Paul B Mahol
Committed by
Michael Niedermayer
Jan 03, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc: replace rest of deprecated SAMPLE_FMT_* with AV_SAMPLE_FMT_*
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
7099f365
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
g723_1.c
libavcodec/g723_1.c
+3
-3
libaacplus.c
libavcodec/libaacplus.c
+1
-1
nellymoserdec.c
libavcodec/nellymoserdec.c
+1
-1
No files found.
libavcodec/g723_1.c
View file @
69d766da
...
...
@@ -77,7 +77,7 @@ static av_cold int g723_1_decode_init(AVCodecContext *avctx)
{
G723_1_Context
*
p
=
avctx
->
priv_data
;
avctx
->
sample_fmt
=
SAMPLE_FMT_S16
;
avctx
->
sample_fmt
=
AV_
SAMPLE_FMT_S16
;
p
->
pf_gain
=
1
<<
12
;
memcpy
(
p
->
prev_lsp
,
dc_lsp
,
LPC_ORDER
*
sizeof
(
int16_t
));
...
...
@@ -2224,7 +2224,7 @@ AVCodec ff_g723_1_encoder = {
.
init
=
g723_1_encode_init
,
.
encode
=
g723_1_encode_frame
,
.
long_name
=
NULL_IF_CONFIG_SMALL
(
"G.723.1"
),
.
sample_fmts
=
(
const
enum
SampleFormat
[]){
SAMPLE_FMT_S16
,
SAMPLE_FMT_NONE
},
.
sample_fmts
=
(
const
enum
SampleFormat
[]){
AV_
SAMPLE_FMT_S16
,
AV_
SAMPLE_FMT_NONE
},
};
#endif
libavcodec/libaacplus.c
View file @
69d766da
...
...
@@ -129,6 +129,6 @@ AVCodec ff_libaacplus_encoder = {
.
init
=
aacPlus_encode_init
,
.
encode
=
aacPlus_encode_frame
,
.
close
=
aacPlus_encode_close
,
.
sample_fmts
=
(
const
enum
SampleFormat
[]){
SAMPLE_FMT_S16
,
SAMPLE_FMT_NONE
},
.
sample_fmts
=
(
const
enum
SampleFormat
[]){
AV_SAMPLE_FMT_S16
,
AV_
SAMPLE_FMT_NONE
},
.
long_name
=
NULL_IF_CONFIG_SMALL
(
"libaacplus AAC+ (Advanced Audio Codec with SBR+PS)"
),
};
libavcodec/nellymoserdec.c
View file @
69d766da
...
...
@@ -192,7 +192,7 @@ static int decode_tag(AVCodecContext *avctx, void *data,
samples_flt
=
(
float
*
)
s
->
frame
.
data
[
0
];
for
(
i
=
0
;
i
<
blocks
;
i
++
)
{
if
(
avctx
->
sample_fmt
==
SAMPLE_FMT_FLT
)
{
if
(
avctx
->
sample_fmt
==
AV_
SAMPLE_FMT_FLT
)
{
nelly_decode_block
(
s
,
buf
,
samples_flt
);
samples_flt
+=
NELLY_SAMPLES
;
}
else
{
...
...
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