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
106789df
Commit
106789df
authored
Apr 29, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swr: add sample format to AudioData
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
2d6c29f5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
swresample.c
libswresample/swresample.c
+1
-0
swresample_internal.h
libswresample/swresample_internal.h
+1
-0
No files found.
libswresample/swresample.c
View file @
106789df
...
...
@@ -154,6 +154,7 @@ struct SwrContext *swr_alloc_set_opts(struct SwrContext *s,
}
static
void
set_audiodata_fmt
(
AudioData
*
a
,
enum
AVSampleFormat
fmt
){
a
->
fmt
=
fmt
;
a
->
bps
=
av_get_bytes_per_sample
(
fmt
);
a
->
planar
=
av_sample_fmt_is_planar
(
fmt
);
}
...
...
libswresample/swresample_internal.h
View file @
106789df
...
...
@@ -30,6 +30,7 @@ typedef struct AudioData{
int
bps
;
///< bytes per sample
int
count
;
///< number of samples
int
planar
;
///< 1 if planar audio, 0 otherwise
enum
AVSampleFormat
fmt
;
///< sample format
}
AudioData
;
struct
SwrContext
{
...
...
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