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
f6715848
Commit
f6715848
authored
Dec 12, 2010
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reindent.
Originally committed as revision 25940 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
8afab686
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
ffmpeg.c
ffmpeg.c
+12
-12
No files found.
ffmpeg.c
View file @
f6715848
...
...
@@ -827,18 +827,18 @@ need_realloc:
ost
->
resample
=
NULL
;
ost
->
audio_resample
=
0
;
}
else
{
if
(
dec
->
sample_fmt
!=
AV_SAMPLE_FMT_S16
)
fprintf
(
stderr
,
"Warning, using s16 intermediate sample format for resampling
\n
"
);
ost
->
resample
=
av_audio_resample_init
(
enc
->
channels
,
dec
->
channels
,
enc
->
sample_rate
,
dec
->
sample_rate
,
enc
->
sample_fmt
,
dec
->
sample_fmt
,
16
,
10
,
0
,
0
.
8
);
if
(
!
ost
->
resample
)
{
fprintf
(
stderr
,
"Can not resample %d channels @ %d Hz to %d channels @ %d Hz
\n
"
,
dec
->
channels
,
dec
->
sample_rate
,
enc
->
channels
,
enc
->
sample_rate
);
ffmpeg_exit
(
1
);
}
if
(
dec
->
sample_fmt
!=
AV_SAMPLE_FMT_S16
)
fprintf
(
stderr
,
"Warning, using s16 intermediate sample format for resampling
\n
"
);
ost
->
resample
=
av_audio_resample_init
(
enc
->
channels
,
dec
->
channels
,
enc
->
sample_rate
,
dec
->
sample_rate
,
enc
->
sample_fmt
,
dec
->
sample_fmt
,
16
,
10
,
0
,
0
.
8
);
if
(
!
ost
->
resample
)
{
fprintf
(
stderr
,
"Can not resample %d channels @ %d Hz to %d channels @ %d Hz
\n
"
,
dec
->
channels
,
dec
->
sample_rate
,
enc
->
channels
,
enc
->
sample_rate
);
ffmpeg_exit
(
1
);
}
}
}
...
...
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