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
a1128225
Commit
a1128225
authored
Jun 23, 2012
by
Alex Converse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
movenc: Add channel layouts for PCM.
parent
15358ade
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
4 deletions
+30
-4
mov_chan.c
libavformat/mov_chan.c
+26
-0
acodec-pcm-s16be
tests/ref/fate/acodec-pcm-s16be
+1
-1
acodec-pcm-s24be
tests/ref/fate/acodec-pcm-s24be
+1
-1
acodec-pcm-s32be
tests/ref/fate/acodec-pcm-s32be
+1
-1
acodec-pcm-s8
tests/ref/fate/acodec-pcm-s8
+1
-1
No files found.
libavformat/mov_chan.c
View file @
a1128225
...
...
@@ -414,6 +414,20 @@ static const enum MovChannelLayoutTag mov_ch_layouts_alac[] = {
0
,
};
static
const
enum
MovChannelLayoutTag
mov_ch_layouts_wav
[]
=
{
MOV_CH_LAYOUT_MONO
,
MOV_CH_LAYOUT_STEREO
,
MOV_CH_LAYOUT_MATRIXSTEREO
,
MOV_CH_LAYOUT_MPEG_3_0_A
,
MOV_CH_LAYOUT_QUADRAPHONIC
,
MOV_CH_LAYOUT_MPEG_5_0_A
,
MOV_CH_LAYOUT_MPEG_5_1_A
,
MOV_CH_LAYOUT_MPEG_6_1_A
,
MOV_CH_LAYOUT_MPEG_7_1_A
,
MOV_CH_LAYOUT_MPEG_7_1_C
,
MOV_CH_LAYOUT_SMPTE_DTV
,
};
static
const
struct
{
enum
CodecID
codec_id
;
const
enum
MovChannelLayoutTag
*
layouts
;
...
...
@@ -421,6 +435,18 @@ static const struct {
{
CODEC_ID_AAC
,
mov_ch_layouts_aac
},
{
CODEC_ID_AC3
,
mov_ch_layouts_ac3
},
{
CODEC_ID_ALAC
,
mov_ch_layouts_alac
},
{
CODEC_ID_PCM_U8
,
mov_ch_layouts_wav
},
{
CODEC_ID_PCM_S8
,
mov_ch_layouts_wav
},
{
CODEC_ID_PCM_S16LE
,
mov_ch_layouts_wav
},
{
CODEC_ID_PCM_S16BE
,
mov_ch_layouts_wav
},
{
CODEC_ID_PCM_S24LE
,
mov_ch_layouts_wav
},
{
CODEC_ID_PCM_S24BE
,
mov_ch_layouts_wav
},
{
CODEC_ID_PCM_S32LE
,
mov_ch_layouts_wav
},
{
CODEC_ID_PCM_S32BE
,
mov_ch_layouts_wav
},
{
CODEC_ID_PCM_F32LE
,
mov_ch_layouts_wav
},
{
CODEC_ID_PCM_F32BE
,
mov_ch_layouts_wav
},
{
CODEC_ID_PCM_F64LE
,
mov_ch_layouts_wav
},
{
CODEC_ID_PCM_F64BE
,
mov_ch_layouts_wav
},
{
CODEC_ID_NONE
,
NULL
},
};
...
...
tests/ref/fate/acodec-pcm-s16be
View file @
a1128225
b023c4792bd206fa96f64a8a012b6eb8
*tests/data/fate/acodec-pcm-s16be.mov
009a446579dd4cba793723b5e2b93c39
*tests/data/fate/acodec-pcm-s16be.mov
1060097 tests/data/fate/acodec-pcm-s16be.mov
64151e4bcc2b717aa5a8454d424d6a1f *tests/data/fate/acodec-pcm-s16be.out.wav
stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 1058400/ 1058400
tests/ref/fate/acodec-pcm-s24be
View file @
a1128225
3607f8c7029a0c2ca2c8bf2c929518b3
*tests/data/fate/acodec-pcm-s24be.mov
de27dae0dff0359d8f39449b17d5607f
*tests/data/fate/acodec-pcm-s24be.mov
1589297 tests/data/fate/acodec-pcm-s24be.mov
64151e4bcc2b717aa5a8454d424d6a1f *tests/data/fate/acodec-pcm-s24be.out.wav
stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 1058400/ 1058400
tests/ref/fate/acodec-pcm-s32be
View file @
a1128225
2
a47292543cb0c25583a49397504e6d1
*tests/data/fate/acodec-pcm-s32be.mov
2
db1e7fe92d4006103691a4b59064dc6
*tests/data/fate/acodec-pcm-s32be.mov
2118497 tests/data/fate/acodec-pcm-s32be.mov
64151e4bcc2b717aa5a8454d424d6a1f *tests/data/fate/acodec-pcm-s32be.out.wav
stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 1058400/ 1058400
tests/ref/fate/acodec-pcm-s8
View file @
a1128225
9
53eb563c7ea81c1ec73c5a806975e34
*tests/data/fate/acodec-pcm-s8.mov
9
ee95a7fff38831a1cad3b49c33e6ed9
*tests/data/fate/acodec-pcm-s8.mov
530897 tests/data/fate/acodec-pcm-s8.mov
651d4eb8d98dfcdda96ae6c43d8f156b *tests/data/fate/acodec-pcm-s8.out.wav
stddev: 147.89 PSNR: 52.93 MAXDIFF: 255 bytes: 1058400/ 1058400
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