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
6512ff72
Commit
6512ff72
authored
Jan 15, 2018
by
wm4
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat: deprecate another ffserver API leftover
parent
83e34ae3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
1 deletion
+25
-1
APIchanges
doc/APIchanges
+4
-0
avformat.h
libavformat/avformat.h
+5
-0
utils.c
libavformat/utils.c
+12
-0
version.h
libavformat/version.h
+4
-1
No files found.
doc/APIchanges
View file @
6512ff72
...
...
@@ -15,6 +15,10 @@ libavutil: 2017-10-21
API changes, most recent first:
2018-01-xx - xxxxxxx - lavf 58.4.100 - avformat.h
Deprecate AVStream.recommended_encoder_configuration. It was useful only for
FFserver, which has been removed.
2018-01-xx - xxxxxxx - lavfi 7.11.101 - avfilter.h
Deprecate avfilter_link_get_channels(). Use av_buffersink_get_channels().
...
...
libavformat/avformat.h
View file @
6512ff72
...
...
@@ -986,12 +986,15 @@ typedef struct AVStream {
*/
AVRational
r_frame_rate
;
#if FF_API_LAVF_FFSERVER
/**
* String containing pairs of key and values describing recommended encoder configuration.
* Pairs are separated by ','.
* Keys are separated from values by '='.
*/
attribute_deprecated
char
*
recommended_encoder_configuration
;
#endif
/**
* Codec parameters associated with this stream. Allocated and freed by
...
...
@@ -1218,10 +1221,12 @@ AVRational av_stream_get_r_frame_rate(const AVStream *s);
attribute_deprecated
void
av_stream_set_r_frame_rate
(
AVStream
*
s
,
AVRational
r
);
attribute_deprecated
#if FF_API_LAVF_FFSERVER
char
*
av_stream_get_recommended_encoder_configuration
(
const
AVStream
*
s
);
attribute_deprecated
void
av_stream_set_recommended_encoder_configuration
(
AVStream
*
s
,
char
*
configuration
);
#endif
#endif
struct
AVCodecParserContext
*
av_stream_get_parser
(
const
AVStream
*
s
);
...
...
libavformat/utils.c
View file @
6512ff72
...
...
@@ -119,7 +119,11 @@ static int64_t wrap_timestamp(const AVStream *st, int64_t timestamp)
#if FF_API_FORMAT_GET_SET
MAKE_ACCESSORS
(
AVStream
,
stream
,
AVRational
,
r_frame_rate
)
#if FF_API_LAVF_FFSERVER
FF_DISABLE_DEPRECATION_WARNINGS
MAKE_ACCESSORS
(
AVStream
,
stream
,
char
*
,
recommended_encoder_configuration
)
FF_ENABLE_DEPRECATION_WARNINGS
#endif
MAKE_ACCESSORS
(
AVFormatContext
,
format
,
AVCodec
*
,
video_codec
)
MAKE_ACCESSORS
(
AVFormatContext
,
format
,
AVCodec
*
,
audio_codec
)
MAKE_ACCESSORS
(
AVFormatContext
,
format
,
AVCodec
*
,
subtitle_codec
)
...
...
@@ -4256,6 +4260,8 @@ int ff_stream_encode_params_copy(AVStream *dst, const AVStream *src)
}
}
#if FF_API_LAVF_FFSERVER
FF_DISABLE_DEPRECATION_WARNINGS
av_freep
(
&
dst
->
recommended_encoder_configuration
);
if
(
src
->
recommended_encoder_configuration
)
{
const
char
*
conf_str
=
src
->
recommended_encoder_configuration
;
...
...
@@ -4263,6 +4269,8 @@ int ff_stream_encode_params_copy(AVStream *dst, const AVStream *src)
if
(
!
dst
->
recommended_encoder_configuration
)
return
AVERROR
(
ENOMEM
);
}
FF_ENABLE_DEPRECATION_WARNINGS
#endif
return
0
;
}
...
...
@@ -4310,7 +4318,11 @@ FF_ENABLE_DEPRECATION_WARNINGS
if
(
st
->
info
)
av_freep
(
&
st
->
info
->
duration_error
);
av_freep
(
&
st
->
info
);
#if FF_API_LAVF_FFSERVER
FF_DISABLE_DEPRECATION_WARNINGS
av_freep
(
&
st
->
recommended_encoder_configuration
);
FF_ENABLE_DEPRECATION_WARNINGS
#endif
av_freep
(
pst
);
}
...
...
libavformat/version.h
View file @
6512ff72
...
...
@@ -32,7 +32,7 @@
// Major bumping may affect Ticket5467, 5421, 5451(compatibility with Chromium)
// Also please add any ticket numbers that you believe might be affected here
#define LIBAVFORMAT_VERSION_MAJOR 58
#define LIBAVFORMAT_VERSION_MINOR
3
#define LIBAVFORMAT_VERSION_MINOR
4
#define LIBAVFORMAT_VERSION_MICRO 100
#define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
...
...
@@ -82,6 +82,9 @@
#ifndef FF_API_OLD_AVIO_EOF_0
#define FF_API_OLD_AVIO_EOF_0 (LIBAVFORMAT_VERSION_MAJOR < 59)
#endif
#ifndef FF_API_LAVF_FFSERVER
#define FF_API_LAVF_FFSERVER (LIBAVFORMAT_VERSION_MAJOR < 59)
#endif
#ifndef FF_API_R_FRAME_RATE
...
...
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