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
dc70c194
Commit
dc70c194
authored
Jul 28, 2015
by
Vittorio Giovara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc: Drop deprecated request_channels related functions
Deprecated in 04/2011.
parent
f6974fe6
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
0 additions
and
81 deletions
+0
-81
aac_ac3_parser.c
libavcodec/aac_ac3_parser.c
+0
-8
ac3dec.c
libavcodec/ac3dec.c
+0
-8
avcodec.h
libavcodec/avcodec.h
+0
-10
dcadec.c
libavcodec/dcadec.c
+0
-14
mlp_parser.c
libavcodec/mlp_parser.c
+0
-22
mlpdec.c
libavcodec/mlpdec.c
+0
-13
options_table.h
libavcodec/options_table.h
+0
-3
version.h
libavcodec/version.h
+0
-3
No files found.
libavcodec/aac_ac3_parser.c
View file @
dc70c194
...
@@ -84,14 +84,6 @@ get_next:
...
@@ -84,14 +84,6 @@ get_next:
avctx
->
sample_rate
=
s
->
sample_rate
;
avctx
->
sample_rate
=
s
->
sample_rate
;
/* (E-)AC-3: allow downmixing to stereo or mono */
/* (E-)AC-3: allow downmixing to stereo or mono */
#if FF_API_REQUEST_CHANNELS
FF_DISABLE_DEPRECATION_WARNINGS
if
(
avctx
->
request_channels
==
1
)
avctx
->
request_channel_layout
=
AV_CH_LAYOUT_MONO
;
else
if
(
avctx
->
request_channels
==
2
)
avctx
->
request_channel_layout
=
AV_CH_LAYOUT_STEREO
;
FF_ENABLE_DEPRECATION_WARNINGS
#endif
if
(
s
->
channels
>
1
&&
if
(
s
->
channels
>
1
&&
avctx
->
request_channel_layout
==
AV_CH_LAYOUT_MONO
)
{
avctx
->
request_channel_layout
==
AV_CH_LAYOUT_MONO
)
{
avctx
->
channels
=
1
;
avctx
->
channels
=
1
;
...
...
libavcodec/ac3dec.c
View file @
dc70c194
...
@@ -190,14 +190,6 @@ static av_cold int ac3_decode_init(AVCodecContext *avctx)
...
@@ -190,14 +190,6 @@ static av_cold int ac3_decode_init(AVCodecContext *avctx)
avctx
->
sample_fmt
=
AV_SAMPLE_FMT_FLTP
;
avctx
->
sample_fmt
=
AV_SAMPLE_FMT_FLTP
;
/* allow downmixing to stereo or mono */
/* allow downmixing to stereo or mono */
#if FF_API_REQUEST_CHANNELS
FF_DISABLE_DEPRECATION_WARNINGS
if
(
avctx
->
request_channels
==
1
)
avctx
->
request_channel_layout
=
AV_CH_LAYOUT_MONO
;
else
if
(
avctx
->
request_channels
==
2
)
avctx
->
request_channel_layout
=
AV_CH_LAYOUT_STEREO
;
FF_ENABLE_DEPRECATION_WARNINGS
#endif
if
(
avctx
->
channels
>
1
&&
if
(
avctx
->
channels
>
1
&&
avctx
->
request_channel_layout
==
AV_CH_LAYOUT_MONO
)
avctx
->
request_channel_layout
==
AV_CH_LAYOUT_MONO
)
avctx
->
channels
=
1
;
avctx
->
channels
=
1
;
...
...
libavcodec/avcodec.h
View file @
dc70c194
...
@@ -2063,16 +2063,6 @@ typedef struct AVCodecContext {
...
@@ -2063,16 +2063,6 @@ typedef struct AVCodecContext {
*/
*/
int
cutoff
;
int
cutoff
;
#if FF_API_REQUEST_CHANNELS
/**
* Decoder should decode to this many channels if it can (0 for default)
* - encoding: unused
* - decoding: Set by user.
* @deprecated Deprecated in favor of request_channel_layout.
*/
attribute_deprecated
int
request_channels
;
#endif
/**
/**
* Audio channel layout.
* Audio channel layout.
* - encoding: set by user.
* - encoding: set by user.
...
...
libavcodec/dcadec.c
View file @
dc70c194
...
@@ -1307,15 +1307,7 @@ static int dca_decode_frame(AVCodecContext *avctx, void *data,
...
@@ -1307,15 +1307,7 @@ static int dca_decode_frame(AVCodecContext *avctx, void *data,
s
->
xch_disable
=
1
;
s
->
xch_disable
=
1
;
}
}
#if FF_API_REQUEST_CHANNELS
FF_DISABLE_DEPRECATION_WARNINGS
if
(
s
->
xch_present
&&
!
s
->
xch_disable
&&
(
!
avctx
->
request_channels
||
avctx
->
request_channels
>
num_core_channels
+
!!
s
->
lfe
))
{
FF_ENABLE_DEPRECATION_WARNINGS
#else
if
(
s
->
xch_present
&&
!
s
->
xch_disable
)
{
if
(
s
->
xch_present
&&
!
s
->
xch_disable
)
{
#endif
avctx
->
channel_layout
|=
AV_CH_BACK_CENTER
;
avctx
->
channel_layout
|=
AV_CH_BACK_CENTER
;
if
(
s
->
lfe
)
{
if
(
s
->
lfe
)
{
avctx
->
channel_layout
|=
AV_CH_LOW_FREQUENCY
;
avctx
->
channel_layout
|=
AV_CH_LOW_FREQUENCY
;
...
@@ -1523,12 +1515,6 @@ static av_cold int dca_decode_init(AVCodecContext *avctx)
...
@@ -1523,12 +1515,6 @@ static av_cold int dca_decode_init(AVCodecContext *avctx)
avctx
->
sample_fmt
=
AV_SAMPLE_FMT_FLTP
;
avctx
->
sample_fmt
=
AV_SAMPLE_FMT_FLTP
;
/* allow downmixing to stereo */
/* allow downmixing to stereo */
#if FF_API_REQUEST_CHANNELS
FF_DISABLE_DEPRECATION_WARNINGS
if
(
avctx
->
request_channels
==
2
)
avctx
->
request_channel_layout
=
AV_CH_LAYOUT_STEREO
;
FF_ENABLE_DEPRECATION_WARNINGS
#endif
if
(
avctx
->
channels
>
2
&&
if
(
avctx
->
channels
>
2
&&
avctx
->
request_channel_layout
==
AV_CH_LAYOUT_STEREO
)
avctx
->
request_channel_layout
==
AV_CH_LAYOUT_STEREO
)
avctx
->
channels
=
2
;
avctx
->
channels
=
2
;
...
...
libavcodec/mlp_parser.c
View file @
dc70c194
...
@@ -345,15 +345,6 @@ static int mlp_parse(AVCodecParserContext *s,
...
@@ -345,15 +345,6 @@ static int mlp_parse(AVCodecParserContext *s,
if
(
mh
.
stream_type
==
0xbb
)
{
if
(
mh
.
stream_type
==
0xbb
)
{
/* MLP stream */
/* MLP stream */
#if FF_API_REQUEST_CHANNELS
FF_DISABLE_DEPRECATION_WARNINGS
if
(
avctx
->
request_channels
>
0
&&
avctx
->
request_channels
<=
2
&&
mh
.
num_substreams
>
1
)
{
avctx
->
channels
=
2
;
avctx
->
channel_layout
=
AV_CH_LAYOUT_STEREO
;
}
else
FF_ENABLE_DEPRECATION_WARNINGS
#endif
if
(
avctx
->
request_channel_layout
&&
if
(
avctx
->
request_channel_layout
&&
(
avctx
->
request_channel_layout
&
AV_CH_LAYOUT_STEREO
)
==
(
avctx
->
request_channel_layout
&
AV_CH_LAYOUT_STEREO
)
==
avctx
->
request_channel_layout
&&
avctx
->
request_channel_layout
&&
...
@@ -366,19 +357,6 @@ FF_ENABLE_DEPRECATION_WARNINGS
...
@@ -366,19 +357,6 @@ FF_ENABLE_DEPRECATION_WARNINGS
}
}
}
else
{
/* mh.stream_type == 0xba */
}
else
{
/* mh.stream_type == 0xba */
/* TrueHD stream */
/* TrueHD stream */
#if FF_API_REQUEST_CHANNELS
FF_DISABLE_DEPRECATION_WARNINGS
if
(
avctx
->
request_channels
>
0
&&
avctx
->
request_channels
<=
2
&&
mh
.
num_substreams
>
1
)
{
avctx
->
channels
=
2
;
avctx
->
channel_layout
=
AV_CH_LAYOUT_STEREO
;
}
else
if
(
avctx
->
request_channels
>
0
&&
avctx
->
request_channels
<=
mh
.
channels_thd_stream1
)
{
avctx
->
channels
=
mh
.
channels_thd_stream1
;
avctx
->
channel_layout
=
mh
.
channel_layout_thd_stream1
;
}
else
FF_ENABLE_DEPRECATION_WARNINGS
#endif
if
(
avctx
->
request_channel_layout
&&
if
(
avctx
->
request_channel_layout
&&
(
avctx
->
request_channel_layout
&
AV_CH_LAYOUT_STEREO
)
==
(
avctx
->
request_channel_layout
&
AV_CH_LAYOUT_STEREO
)
==
avctx
->
request_channel_layout
&&
avctx
->
request_channel_layout
&&
...
...
libavcodec/mlpdec.c
View file @
dc70c194
...
@@ -509,19 +509,6 @@ static int read_restart_header(MLPDecodeContext *m, GetBitContext *gbp,
...
@@ -509,19 +509,6 @@ static int read_restart_header(MLPDecodeContext *m, GetBitContext *gbp,
s
->
max_channel
=
max_channel
;
s
->
max_channel
=
max_channel
;
s
->
max_matrix_channel
=
max_matrix_channel
;
s
->
max_matrix_channel
=
max_matrix_channel
;
#if FF_API_REQUEST_CHANNELS
FF_DISABLE_DEPRECATION_WARNINGS
if
(
m
->
avctx
->
request_channels
>
0
&&
m
->
avctx
->
request_channels
<=
s
->
max_channel
+
1
&&
m
->
max_decoded_substream
>
substr
)
{
av_log
(
m
->
avctx
,
AV_LOG_DEBUG
,
"Extracting %d-channel downmix from substream %d. "
"Further substreams will be skipped.
\n
"
,
s
->
max_channel
+
1
,
substr
);
m
->
max_decoded_substream
=
substr
;
}
else
FF_ENABLE_DEPRECATION_WARNINGS
#endif
if
(
m
->
avctx
->
request_channel_layout
&&
(
s
->
ch_layout
&
m
->
avctx
->
request_channel_layout
)
==
if
(
m
->
avctx
->
request_channel_layout
&&
(
s
->
ch_layout
&
m
->
avctx
->
request_channel_layout
)
==
m
->
avctx
->
request_channel_layout
&&
m
->
max_decoded_substream
>
substr
)
{
m
->
avctx
->
request_channel_layout
&&
m
->
max_decoded_substream
>
substr
)
{
av_log
(
m
->
avctx
,
AV_LOG_DEBUG
,
av_log
(
m
->
avctx
,
AV_LOG_DEBUG
,
...
...
libavcodec/options_table.h
View file @
dc70c194
...
@@ -393,9 +393,6 @@ static const AVOption avcodec_options[] = {
...
@@ -393,9 +393,6 @@ static const AVOption avcodec_options[] = {
{
"min_prediction_order"
,
NULL
,
OFFSET
(
min_prediction_order
),
AV_OPT_TYPE_INT
,
{.
i64
=
-
1
},
INT_MIN
,
INT_MAX
,
A
|
E
},
{
"min_prediction_order"
,
NULL
,
OFFSET
(
min_prediction_order
),
AV_OPT_TYPE_INT
,
{.
i64
=
-
1
},
INT_MIN
,
INT_MAX
,
A
|
E
},
{
"max_prediction_order"
,
NULL
,
OFFSET
(
max_prediction_order
),
AV_OPT_TYPE_INT
,
{.
i64
=
-
1
},
INT_MIN
,
INT_MAX
,
A
|
E
},
{
"max_prediction_order"
,
NULL
,
OFFSET
(
max_prediction_order
),
AV_OPT_TYPE_INT
,
{.
i64
=
-
1
},
INT_MIN
,
INT_MAX
,
A
|
E
},
{
"timecode_frame_start"
,
"GOP timecode frame start number, in non-drop-frame format"
,
OFFSET
(
timecode_frame_start
),
AV_OPT_TYPE_INT64
,
{.
i64
=
0
},
0
,
INT64_MAX
,
V
|
E
},
{
"timecode_frame_start"
,
"GOP timecode frame start number, in non-drop-frame format"
,
OFFSET
(
timecode_frame_start
),
AV_OPT_TYPE_INT64
,
{.
i64
=
0
},
0
,
INT64_MAX
,
V
|
E
},
#if FF_API_REQUEST_CHANNELS
{
"request_channels"
,
"set desired number of audio channels"
,
OFFSET
(
request_channels
),
AV_OPT_TYPE_INT
,
{.
i64
=
DEFAULT
},
0
,
INT_MAX
,
A
|
D
},
#endif
{
"bits_per_raw_sample"
,
NULL
,
OFFSET
(
bits_per_raw_sample
),
AV_OPT_TYPE_INT
,
{.
i64
=
DEFAULT
},
INT_MIN
,
INT_MAX
},
{
"bits_per_raw_sample"
,
NULL
,
OFFSET
(
bits_per_raw_sample
),
AV_OPT_TYPE_INT
,
{.
i64
=
DEFAULT
},
INT_MIN
,
INT_MAX
},
{
"channel_layout"
,
NULL
,
OFFSET
(
channel_layout
),
AV_OPT_TYPE_INT64
,
{.
i64
=
DEFAULT
},
0
,
INT64_MAX
,
A
|
E
|
D
,
"channel_layout"
},
{
"channel_layout"
,
NULL
,
OFFSET
(
channel_layout
),
AV_OPT_TYPE_INT64
,
{.
i64
=
DEFAULT
},
0
,
INT64_MAX
,
A
|
E
|
D
,
"channel_layout"
},
{
"request_channel_layout"
,
NULL
,
OFFSET
(
request_channel_layout
),
AV_OPT_TYPE_INT64
,
{.
i64
=
DEFAULT
},
0
,
INT64_MAX
,
A
|
D
,
"request_channel_layout"
},
{
"request_channel_layout"
,
NULL
,
OFFSET
(
request_channel_layout
),
AV_OPT_TYPE_INT64
,
{.
i64
=
DEFAULT
},
0
,
INT64_MAX
,
A
|
D
,
"request_channel_layout"
},
...
...
libavcodec/version.h
View file @
dc70c194
...
@@ -48,9 +48,6 @@
...
@@ -48,9 +48,6 @@
* the public API and may change, break or disappear at any time.
* the public API and may change, break or disappear at any time.
*/
*/
#ifndef FF_API_REQUEST_CHANNELS
#define FF_API_REQUEST_CHANNELS (LIBAVCODEC_VERSION_MAJOR < 57)
#endif
#ifndef FF_API_DEINTERLACE
#ifndef FF_API_DEINTERLACE
#define FF_API_DEINTERLACE (LIBAVCODEC_VERSION_MAJOR < 57)
#define FF_API_DEINTERLACE (LIBAVCODEC_VERSION_MAJOR < 57)
#endif
#endif
...
...
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