Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
4679a474
Commit
4679a474
authored
Feb 10, 2020
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc: Use supported_samplerates for Dolby Digital encoders.
Fixes ticket #8518.
parent
944cb188
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
2 deletions
+5
-2
ac3enc_fixed.c
libavcodec/ac3enc_fixed.c
+1
-0
ac3enc_float.c
libavcodec/ac3enc_float.c
+1
-0
ac3tab.c
libavcodec/ac3tab.c
+1
-1
ac3tab.h
libavcodec/ac3tab.h
+1
-1
eac3enc.c
libavcodec/eac3enc.c
+1
-0
No files found.
libavcodec/ac3enc_fixed.c
View file @
4679a474
...
...
@@ -155,6 +155,7 @@ AVCodec ff_ac3_fixed_encoder = {
.
sample_fmts
=
(
const
enum
AVSampleFormat
[]){
AV_SAMPLE_FMT_S16P
,
AV_SAMPLE_FMT_NONE
},
.
priv_class
=
&
ac3enc_class
,
.
supported_samplerates
=
ff_ac3_sample_rate_tab
,
.
channel_layouts
=
ff_ac3_channel_layouts
,
.
defaults
=
ac3_defaults
,
};
libavcodec/ac3enc_float.c
View file @
4679a474
...
...
@@ -150,6 +150,7 @@ AVCodec ff_ac3_encoder = {
.
sample_fmts
=
(
const
enum
AVSampleFormat
[]){
AV_SAMPLE_FMT_FLTP
,
AV_SAMPLE_FMT_NONE
},
.
priv_class
=
&
ac3enc_class
,
.
supported_samplerates
=
ff_ac3_sample_rate_tab
,
.
channel_layouts
=
ff_ac3_channel_layouts
,
.
defaults
=
ac3_defaults
,
};
libavcodec/ac3tab.c
View file @
4679a474
...
...
@@ -126,7 +126,7 @@ const uint8_t ff_ac3_dec_channel_map[8][2][6] = {
};
/* possible frequencies */
const
uint16_
t
ff_ac3_sample_rate_tab
[
3
]
=
{
48000
,
44100
,
32000
};
const
in
t
ff_ac3_sample_rate_tab
[
3
]
=
{
48000
,
44100
,
32000
};
/* possible bitrates */
const
uint16_t
ff_ac3_bitrate_tab
[
19
]
=
{
...
...
libavcodec/ac3tab.h
View file @
4679a474
...
...
@@ -33,7 +33,7 @@ extern const uint8_t ff_ac3_channels_tab[8];
extern
av_export_avcodec
const
uint16_t
avpriv_ac3_channel_layout_tab
[
8
];
extern
const
uint8_t
ff_ac3_enc_channel_map
[
8
][
2
][
6
];
extern
const
uint8_t
ff_ac3_dec_channel_map
[
8
][
2
][
6
];
extern
const
uint16_t
ff_ac3_sample_rate_tab
[
3
];
extern
const
int
ff_ac3_sample_rate_tab
[
3
];
extern
const
uint16_t
ff_ac3_bitrate_tab
[
19
];
extern
const
uint8_t
ff_ac3_rematrix_band_tab
[
5
];
extern
const
uint8_t
ff_eac3_default_cpl_band_struct
[
18
];
...
...
libavcodec/eac3enc.c
View file @
4679a474
...
...
@@ -263,6 +263,7 @@ AVCodec ff_eac3_encoder = {
.
sample_fmts
=
(
const
enum
AVSampleFormat
[]){
AV_SAMPLE_FMT_FLTP
,
AV_SAMPLE_FMT_NONE
},
.
priv_class
=
&
eac3enc_class
,
.
supported_samplerates
=
ff_ac3_sample_rate_tab
,
.
channel_layouts
=
ff_ac3_channel_layouts
,
.
defaults
=
ac3_defaults
,
};
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