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
284e65d6
Commit
284e65d6
authored
Jan 22, 2012
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc: remove disabled FF_API_OLD_SAMPLE_FMT cruft.
parent
6c8dab98
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
0 additions
and
66 deletions
+0
-66
audioconvert.c
libavcodec/audioconvert.c
+0
-17
audioconvert.h
libavcodec/audioconvert.h
+0
-20
avcodec.h
libavcodec/avcodec.h
+0
-20
utils.c
libavcodec/utils.c
+0
-6
version.h
libavcodec/version.h
+0
-3
No files found.
libavcodec/audioconvert.c
View file @
284e65d6
...
...
@@ -31,23 +31,6 @@
#include "avcodec.h"
#include "audioconvert.h"
#if FF_API_OLD_SAMPLE_FMT
const
char
*
avcodec_get_sample_fmt_name
(
int
sample_fmt
)
{
return
av_get_sample_fmt_name
(
sample_fmt
);
}
enum
AVSampleFormat
avcodec_get_sample_fmt
(
const
char
*
name
)
{
return
av_get_sample_fmt
(
name
);
}
void
avcodec_sample_fmt_string
(
char
*
buf
,
int
buf_size
,
int
sample_fmt
)
{
av_get_sample_fmt_string
(
buf
,
buf_size
,
sample_fmt
);
}
#endif
uint64_t
avcodec_guess_channel_layout
(
int
nb_channels
,
enum
CodecID
codec_id
,
const
char
*
fmt_name
)
{
switch
(
nb_channels
)
{
...
...
libavcodec/audioconvert.h
View file @
284e65d6
...
...
@@ -33,26 +33,6 @@
#include "avcodec.h"
#include "libavutil/audioconvert.h"
#if FF_API_OLD_SAMPLE_FMT
/**
* @deprecated Use av_get_sample_fmt_string() instead.
*/
attribute_deprecated
void
avcodec_sample_fmt_string
(
char
*
buf
,
int
buf_size
,
int
sample_fmt
);
/**
* @deprecated Use av_get_sample_fmt_name() instead.
*/
attribute_deprecated
const
char
*
avcodec_get_sample_fmt_name
(
int
sample_fmt
);
/**
* @deprecated Use av_get_sample_fmt() instead.
*/
attribute_deprecated
enum
AVSampleFormat
avcodec_get_sample_fmt
(
const
char
*
name
);
#endif
#if FF_API_OLD_AUDIOCONVERT
/**
* @deprecated Use av_get_channel_layout() instead.
...
...
libavcodec/avcodec.h
View file @
284e65d6
...
...
@@ -424,18 +424,6 @@ enum CodecID {
CODEC_ID_FFMETADATA
=
0x21000
,
///< Dummy codec for streams containing only metadata information.
};
#if FF_API_OLD_SAMPLE_FMT
#define SampleFormat AVSampleFormat
#define SAMPLE_FMT_NONE AV_SAMPLE_FMT_NONE
#define SAMPLE_FMT_U8 AV_SAMPLE_FMT_U8
#define SAMPLE_FMT_S16 AV_SAMPLE_FMT_S16
#define SAMPLE_FMT_S32 AV_SAMPLE_FMT_S32
#define SAMPLE_FMT_FLT AV_SAMPLE_FMT_FLT
#define SAMPLE_FMT_DBL AV_SAMPLE_FMT_DBL
#define SAMPLE_FMT_NB AV_SAMPLE_FMT_NB
#endif
#if FF_API_OLD_AUDIOCONVERT
#include "libavutil/audioconvert.h"
...
...
@@ -4197,14 +4185,6 @@ char av_get_pict_type_char(int pict_type);
*/
int
av_get_bits_per_sample
(
enum
CodecID
codec_id
);
#if FF_API_OLD_SAMPLE_FMT
/**
* @deprecated Use av_get_bytes_per_sample() instead.
*/
attribute_deprecated
int
av_get_bits_per_sample_format
(
enum
AVSampleFormat
sample_fmt
);
#endif
/* frame parsing */
typedef
struct
AVCodecParserContext
{
void
*
priv_data
;
...
...
libavcodec/utils.c
View file @
284e65d6
...
...
@@ -1658,12 +1658,6 @@ int av_get_bits_per_sample(enum CodecID codec_id){
}
}
#if FF_API_OLD_SAMPLE_FMT
int
av_get_bits_per_sample_format
(
enum
AVSampleFormat
sample_fmt
)
{
return
av_get_bytes_per_sample
(
sample_fmt
)
<<
3
;
}
#endif
#if !HAVE_THREADS
int
ff_thread_init
(
AVCodecContext
*
s
){
return
-
1
;
...
...
libavcodec/version.h
View file @
284e65d6
...
...
@@ -38,9 +38,6 @@
* Those FF_API_* defines are not part of public API.
* They may change, break or disappear at any time.
*/
#ifndef FF_API_OLD_SAMPLE_FMT
#define FF_API_OLD_SAMPLE_FMT (LIBAVCODEC_VERSION_MAJOR < 54)
#endif
#ifndef FF_API_OLD_AUDIOCONVERT
#define FF_API_OLD_AUDIOCONVERT (LIBAVCODEC_VERSION_MAJOR < 54)
#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