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
72dee5f4
Commit
72dee5f4
authored
May 26, 2013
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wavpack: don't set sample format in init.
We don't know whether it will be float until we look at the data.
parent
35596bd4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
wavpack.c
libavcodec/wavpack.c
+1
-4
No files found.
libavcodec/wavpack.c
View file @
72dee5f4
...
...
@@ -716,10 +716,7 @@ static av_cold int wavpack_decode_init(AVCodecContext *avctx)
WavpackContext
*
s
=
avctx
->
priv_data
;
s
->
avctx
=
avctx
;
if
(
avctx
->
bits_per_coded_sample
<=
16
)
avctx
->
sample_fmt
=
AV_SAMPLE_FMT_S16P
;
else
avctx
->
sample_fmt
=
AV_SAMPLE_FMT_S32P
;
if
(
avctx
->
channels
<=
2
&&
!
avctx
->
channel_layout
)
avctx
->
channel_layout
=
(
avctx
->
channels
==
2
)
?
AV_CH_LAYOUT_STEREO
:
AV_CH_LAYOUT_MONO
;
...
...
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