Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
BC
public
external
ffmpeg
Commits
9b4f1cdb
Commit
9b4f1cdb
authored
Feb 03, 2011
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc: remove the FF_API_AUDIO_OLD cruft.
parent
20d33ee8
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
55 deletions
+0
-55
libavcodec/avcodec.h
libavcodec/avcodec.h
+0
-27
libavcodec/resample.c
libavcodec/resample.c
+0
-11
libavcodec/utils.c
libavcodec/utils.c
+0
-14
libavcodec/version.h
libavcodec/version.h
+0
-3
No files found.
libavcodec/avcodec.h
View file @
9b4f1cdb
...
...
@@ -3227,14 +3227,6 @@ struct AVResampleContext;
typedef
struct
ReSampleContext
ReSampleContext
;
#if FF_API_AUDIO_OLD
/**
* @deprecated Use av_audio_resample_init() instead.
*/
attribute_deprecated
ReSampleContext
*
audio_resample_init
(
int
output_channels
,
int
input_channels
,
int
output_rate
,
int
input_rate
);
#endif
/**
* Initialize audio resampling context.
*
...
...
@@ -3706,25 +3698,6 @@ int avcodec_default_execute2(AVCodecContext *c, int (*func)(AVCodecContext *c2,
*/
int
avcodec_open
(
AVCodecContext
*
avctx
,
AVCodec
*
codec
);
#if FF_API_AUDIO_OLD
/**
* Decode an audio frame from buf into samples.
* Wrapper function which calls avcodec_decode_audio3.
*
* @deprecated Use avcodec_decode_audio3 instead.
* @param avctx the codec context
* @param[out] samples the output buffer
* @param[in,out] frame_size_ptr the output buffer size in bytes
* @param[in] buf the input buffer
* @param[in] buf_size the input buffer size in bytes
* @return On error a negative value is returned, otherwise the number of bytes
* used or zero if no frame could be decompressed.
*/
attribute_deprecated
int
avcodec_decode_audio2
(
AVCodecContext
*
avctx
,
int16_t
*
samples
,
int
*
frame_size_ptr
,
const
uint8_t
*
buf
,
int
buf_size
);
#endif
/**
* Decode the audio frame of size avpkt->size from avpkt->data into samples.
* Some decoders may support multiple frames in a single AVPacket, such
...
...
libavcodec/resample.c
View file @
9b4f1cdb
...
...
@@ -218,17 +218,6 @@ ReSampleContext *av_audio_resample_init(int output_channels, int input_channels,
return
s
;
}
#if FF_API_AUDIO_OLD
ReSampleContext
*
audio_resample_init
(
int
output_channels
,
int
input_channels
,
int
output_rate
,
int
input_rate
)
{
return
av_audio_resample_init
(
output_channels
,
input_channels
,
output_rate
,
input_rate
,
AV_SAMPLE_FMT_S16
,
AV_SAMPLE_FMT_S16
,
TAPS
,
10
,
0
,
0
.
8
);
}
#endif
/* resample audio. 'nb_samples' is the number of input samples */
/* XXX: optimize it ! */
int
audio_resample
(
ReSampleContext
*
s
,
short
*
output
,
short
*
input
,
int
nb_samples
)
...
...
libavcodec/utils.c
View file @
9b4f1cdb
...
...
@@ -679,20 +679,6 @@ int attribute_align_arg avcodec_decode_video2(AVCodecContext *avctx, AVFrame *pi
return
ret
;
}
#if FF_API_AUDIO_OLD
int
attribute_align_arg
avcodec_decode_audio2
(
AVCodecContext
*
avctx
,
int16_t
*
samples
,
int
*
frame_size_ptr
,
const
uint8_t
*
buf
,
int
buf_size
)
{
AVPacket
avpkt
;
av_init_packet
(
&
avpkt
);
avpkt
.
data
=
buf
;
avpkt
.
size
=
buf_size
;
return
avcodec_decode_audio3
(
avctx
,
samples
,
frame_size_ptr
,
&
avpkt
);
}
#endif
int
attribute_align_arg
avcodec_decode_audio3
(
AVCodecContext
*
avctx
,
int16_t
*
samples
,
int
*
frame_size_ptr
,
AVPacket
*
avpkt
)
...
...
libavcodec/version.h
View file @
9b4f1cdb
...
...
@@ -41,9 +41,6 @@
#ifndef FF_API_PALETTE_CONTROL
#define FF_API_PALETTE_CONTROL (LIBAVCODEC_VERSION_MAJOR < 54)
#endif
#ifndef FF_API_AUDIO_OLD
#define FF_API_AUDIO_OLD (LIBAVCODEC_VERSION_MAJOR < 53)
#endif
#ifndef FF_API_VIDEO_OLD
#define FF_API_VIDEO_OLD (LIBAVCODEC_VERSION_MAJOR < 53)
#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