History

avformat: deprecate another ffserver API leftover

wm4 committed 8 years ago

Commit 6512ff71 parent 83e34ae4 files · +25 −1Browse files

Unified · Split

4 files
  1. doc/APIchanges +4 −0
  2. libavformat/avformat.h +5 −0
  3. libavformat/utils.c +12 −0
  4. libavformat/version.h +4 −1
doc/APIchanges+4−0
@@ -15,6 +15,10 @@ libavutil: 2017-10-21 · 14 unmodified lines
15 15
16API changes, most recent first:16API changes, most recent first:
17 17
182018-01-xx - xxxxxxx - lavf 58.4.100 - avformat.h
19 Deprecate AVStream.recommended_encoder_configuration. It was useful only for
20 FFserver, which has been removed.
21
182018-01-xx - xxxxxxx - lavfi 7.11.101 - avfilter.h222018-01-xx - xxxxxxx - lavfi 7.11.101 - avfilter.h
19 Deprecate avfilter_link_get_channels(). Use av_buffersink_get_channels().23 Deprecate avfilter_link_get_channels(). Use av_buffersink_get_channels().
20 24
libavformat/avformat.h+5−0
@@ -986,12 +986,15 @@ typedef struct AVStream { · 985 unmodified lines
986 */986 */
987 AVRational r_frame_rate;987 AVRational r_frame_rate;
988 988
989#if FF_API_LAVF_FFSERVER
989 /**990 /**
990 * String containing pairs of key and values describing recommended encoder configuration.991 * String containing pairs of key and values describing recommended encoder configuration.
991 * Pairs are separated by ','.992 * Pairs are separated by ','.
992 * Keys are separated from values by '='.993 * Keys are separated from values by '='.
993 */994 */
995 attribute_deprecated
994 char *recommended_encoder_configuration;996 char *recommended_encoder_configuration;
997#endif
995 998
996 /**999 /**
997 * Codec parameters associated with this stream. Allocated and freed by1000 * Codec parameters associated with this stream. Allocated and freed by
@@ -1218,10 +1221,12 @@ AVRational av_stream_get_r_frame_rate(const AVStream *s); · 220 unmodified lines
1218attribute_deprecated1221attribute_deprecated
1219void av_stream_set_r_frame_rate(AVStream *s, AVRational r);1222void av_stream_set_r_frame_rate(AVStream *s, AVRational r);
1220attribute_deprecated1223attribute_deprecated
1224#if FF_API_LAVF_FFSERVER
1221char* av_stream_get_recommended_encoder_configuration(const AVStream *s);1225char* av_stream_get_recommended_encoder_configuration(const AVStream *s);
1222attribute_deprecated1226attribute_deprecated
1223void av_stream_set_recommended_encoder_configuration(AVStream *s, char *configuration);1227void av_stream_set_recommended_encoder_configuration(AVStream *s, char *configuration);
1224#endif1228#endif
1229#endif
1225 1230
1226struct AVCodecParserContext *av_stream_get_parser(const AVStream *s);1231struct AVCodecParserContext *av_stream_get_parser(const AVStream *s);
1227 1232
libavformat/utils.c+12−0
@@ -119,7 +119,11 @@ static int64_t wrap_timestamp(const AVStream *st, int64_t timestamp) · 118 unmodified lines
119 119
120#if FF_API_FORMAT_GET_SET120#if FF_API_FORMAT_GET_SET
121MAKE_ACCESSORS(AVStream, stream, AVRational, r_frame_rate)121MAKE_ACCESSORS(AVStream, stream, AVRational, r_frame_rate)
122#if FF_API_LAVF_FFSERVER
123FF_DISABLE_DEPRECATION_WARNINGS
122MAKE_ACCESSORS(AVStream, stream, char *, recommended_encoder_configuration)124MAKE_ACCESSORS(AVStream, stream, char *, recommended_encoder_configuration)
125FF_ENABLE_DEPRECATION_WARNINGS
126#endif
123MAKE_ACCESSORS(AVFormatContext, format, AVCodec *, video_codec)127MAKE_ACCESSORS(AVFormatContext, format, AVCodec *, video_codec)
124MAKE_ACCESSORS(AVFormatContext, format, AVCodec *, audio_codec)128MAKE_ACCESSORS(AVFormatContext, format, AVCodec *, audio_codec)
125MAKE_ACCESSORS(AVFormatContext, format, AVCodec *, subtitle_codec)129MAKE_ACCESSORS(AVFormatContext, format, AVCodec *, subtitle_codec)
@@ -4256,6 +4260,8 @@ int ff_stream_encode_params_copy(AVStream *dst, const AVStream *src) · 4130 unmodified lines
4256 }4260 }
4257 }4261 }
4258 4262
4263#if FF_API_LAVF_FFSERVER
4264FF_DISABLE_DEPRECATION_WARNINGS
4259 av_freep(&dst->recommended_encoder_configuration);4265 av_freep(&dst->recommended_encoder_configuration);
4260 if (src->recommended_encoder_configuration) {4266 if (src->recommended_encoder_configuration) {
4261 const char *conf_str = src->recommended_encoder_configuration;4267 const char *conf_str = src->recommended_encoder_configuration;
@@ -4263,6 +4269,8 @@ int ff_stream_encode_params_copy(AVStream *dst, const AVStream *src) · 1 unmodified line
4263 if (!dst->recommended_encoder_configuration)4269 if (!dst->recommended_encoder_configuration)
4264 return AVERROR(ENOMEM);4270 return AVERROR(ENOMEM);
4265 }4271 }
4272FF_ENABLE_DEPRECATION_WARNINGS
4273#endif
4266 4274
4267 return 0;4275 return 0;
4268}4276}
@@ -4310,7 +4318,11 @@ FF_ENABLE_DEPRECATION_WARNINGS · 41 unmodified lines
4310 if (st->info)4318 if (st->info)
4311 av_freep(&st->info->duration_error);4319 av_freep(&st->info->duration_error);
4312 av_freep(&st->info);4320 av_freep(&st->info);
4321#if FF_API_LAVF_FFSERVER
4322FF_DISABLE_DEPRECATION_WARNINGS
4313 av_freep(&st->recommended_encoder_configuration);4323 av_freep(&st->recommended_encoder_configuration);
4324FF_ENABLE_DEPRECATION_WARNINGS
4325#endif
4314 4326
4315 av_freep(pst);4327 av_freep(pst);
4316}4328}
libavformat/version.h+4−1
@@ -32,7 +32,7 @@ · 31 unmodified lines
32// Major bumping may affect Ticket5467, 5421, 5451(compatibility with Chromium)32// Major bumping may affect Ticket5467, 5421, 5451(compatibility with Chromium)
33// Also please add any ticket numbers that you believe might be affected here33// Also please add any ticket numbers that you believe might be affected here
34#define LIBAVFORMAT_VERSION_MAJOR 5834#define LIBAVFORMAT_VERSION_MAJOR 58
35#define LIBAVFORMAT_VERSION_MINOR 335#define LIBAVFORMAT_VERSION_MINOR 4
36#define LIBAVFORMAT_VERSION_MICRO 10036#define LIBAVFORMAT_VERSION_MICRO 100
37 37
38#define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \38#define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
@@ -82,6 +82,9 @@ · 43 unmodified lines
82#ifndef FF_API_OLD_AVIO_EOF_082#ifndef FF_API_OLD_AVIO_EOF_0
83#define FF_API_OLD_AVIO_EOF_0 (LIBAVFORMAT_VERSION_MAJOR < 59)83#define FF_API_OLD_AVIO_EOF_0 (LIBAVFORMAT_VERSION_MAJOR < 59)
84#endif84#endif
85#ifndef FF_API_LAVF_FFSERVER
86#define FF_API_LAVF_FFSERVER (LIBAVFORMAT_VERSION_MAJOR < 59)
87#endif
85 88
86 89
87#ifndef FF_API_R_FRAME_RATE90#ifndef FF_API_R_FRAME_RATE

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t