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
61573bf1
Commit
61573bf1
authored
Feb 03, 2011
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf: remove FF_API_GUESS_FORMAT cruft
parent
dcd4a7b6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
44 deletions
+0
-44
avformat.h
libavformat/avformat.h
+0
-12
utils.c
libavformat/utils.c
+0
-29
version.h
libavformat/version.h
+0
-3
No files found.
libavformat/avformat.h
View file @
61573bf1
...
...
@@ -862,18 +862,6 @@ attribute_deprecated enum CodecID av_guess_image2_codec(const char *filename);
/* utils.c */
void
av_register_input_format
(
AVInputFormat
*
format
);
void
av_register_output_format
(
AVOutputFormat
*
format
);
#if FF_API_GUESS_FORMAT
attribute_deprecated
AVOutputFormat
*
guess_stream_format
(
const
char
*
short_name
,
const
char
*
filename
,
const
char
*
mime_type
);
/**
* @deprecated Use av_guess_format() instead.
*/
attribute_deprecated
AVOutputFormat
*
guess_format
(
const
char
*
short_name
,
const
char
*
filename
,
const
char
*
mime_type
);
#endif
/**
* Return the output format in the list of registered output formats
...
...
libavformat/utils.c
View file @
61573bf1
...
...
@@ -200,14 +200,6 @@ static int match_format(const char *name, const char *names)
return
!
strcasecmp
(
name
,
names
);
}
#if FF_API_GUESS_FORMAT
AVOutputFormat
*
guess_format
(
const
char
*
short_name
,
const
char
*
filename
,
const
char
*
mime_type
)
{
return
av_guess_format
(
short_name
,
filename
,
mime_type
);
}
#endif
AVOutputFormat
*
av_guess_format
(
const
char
*
short_name
,
const
char
*
filename
,
const
char
*
mime_type
)
{
...
...
@@ -243,27 +235,6 @@ AVOutputFormat *av_guess_format(const char *short_name, const char *filename,
return
fmt_found
;
}
#if FF_API_GUESS_FORMAT
AVOutputFormat
*
guess_stream_format
(
const
char
*
short_name
,
const
char
*
filename
,
const
char
*
mime_type
)
{
AVOutputFormat
*
fmt
=
av_guess_format
(
short_name
,
filename
,
mime_type
);
if
(
fmt
)
{
AVOutputFormat
*
stream_fmt
;
char
stream_format_name
[
64
];
snprintf
(
stream_format_name
,
sizeof
(
stream_format_name
),
"%s_stream"
,
fmt
->
name
);
stream_fmt
=
av_guess_format
(
stream_format_name
,
NULL
,
NULL
);
if
(
stream_fmt
)
fmt
=
stream_fmt
;
}
return
fmt
;
}
#endif
enum
CodecID
av_guess_codec
(
AVOutputFormat
*
fmt
,
const
char
*
short_name
,
const
char
*
filename
,
const
char
*
mime_type
,
enum
AVMediaType
type
){
if
(
type
==
AVMEDIA_TYPE_VIDEO
){
...
...
libavformat/version.h
View file @
61573bf1
...
...
@@ -47,9 +47,6 @@
#ifndef FF_API_URL_CLASS
#define FF_API_URL_CLASS (LIBAVFORMAT_VERSION_MAJOR >= 53)
#endif
#ifndef FF_API_GUESS_FORMAT
#define FF_API_GUESS_FORMAT (LIBAVFORMAT_VERSION_MAJOR < 53)
#endif
#ifndef FF_API_UDP_GET_FILE
#define FF_API_UDP_GET_FILE (LIBAVFORMAT_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