History

Revert "avfilter: deprecate avfilter_link_get_channels()"

This reverts commit 798dcf2432999f449c76c0e0fe2d7a4ee5eabbc2. It was applied by accident before it could be reviewed.

James Almer committed 8 years ago

Commit da5b05c1 parent 503164b4 files · +6 −20Browse files

Unified · Split

4 files
  1. doc/APIchanges +0 −4
  2. libavfilter/avfilter.c +0 −2
  3. libavfilter/avfilter.h +5 −10
  4. libavfilter/version.h +1 −4
doc/APIchanges+0−4
@@ -15,10 +15,6 @@ 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 - lavfi 7.11.101 - avfilter.h
19 Deprecate avfilter_link_get_channels(), and make AVFilterLink->channels
20 public.
21
222017-xx-xx - xxxxxxx - lavr 4.0.0 - avresample.h182017-xx-xx - xxxxxxx - lavr 4.0.0 - avresample.h
23 Deprecate the entire library. Merged years ago to provide compatibility19 Deprecate the entire library. Merged years ago to provide compatibility
24 with Libav, it remained unmaintained by the FFmpeg project and duplicated20 with Libav, it remained unmaintained by the FFmpeg project and duplicated
libavfilter/avfilter.c+0−2
@@ -183,12 +183,10 @@ void avfilter_link_free(AVFilterLink **link) · 182 unmodified lines
183 av_freep(link);183 av_freep(link);
184}184}
185 185
186#if FF_API_FILTER_GET_SET
187int avfilter_link_get_channels(AVFilterLink *link)186int avfilter_link_get_channels(AVFilterLink *link)
188{187{
189 return link->channels;188 return link->channels;
190}189}
191#endif
192 190
193void ff_filter_set_ready(AVFilterContext *filter, unsigned priority)191void ff_filter_set_ready(AVFilterContext *filter, unsigned priority)
194{192{
libavfilter/avfilter.h+5−10
@@ -448,11 +448,6 @@ struct AVFilterLink { · 447 unmodified lines
448 */448 */
449 AVRational time_base;449 AVRational time_base;
450 450
451 /**
452 * Number of channels.
453 */
454 int channels;
455
456 /*****************************************************************451 /*****************************************************************
457 * All fields below this line are not part of the public API. They452 * All fields below this line are not part of the public API. They
458 * may not be used outside of libavfilter and can be changed and453 * may not be used outside of libavfilter and can be changed and
@@ -556,6 +551,11 @@ struct AVFilterLink { · 97 unmodified lines
556 */551 */
557 int max_samples;552 int max_samples;
558 553
554 /**
555 * Number of channels.
556 */
557 int channels;
558
559 /**559 /**
560 * Link processing flags.560 * Link processing flags.
561 */561 */
@@ -647,15 +647,10 @@ int avfilter_link(AVFilterContext *src, unsigned srcpad, · 85 unmodified lines
647 */647 */
648void avfilter_link_free(AVFilterLink **link);648void avfilter_link_free(AVFilterLink **link);
649 649
650#if FF_API_FILTER_GET_SET
651/**650/**
652 * Get the number of channels of a link.651 * Get the number of channels of a link.
653 * @deprecated This accessor used to be provided for ABI compatibility, and
654 * does not need to be used anymore.
655 */652 */
656attribute_deprecated
657int avfilter_link_get_channels(AVFilterLink *link);653int avfilter_link_get_channels(AVFilterLink *link);
658#endif
659 654
660/**655/**
661 * Set the closed field of a link.656 * Set the closed field of a link.
libavfilter/version.h+1−4
@@ -31,7 +31,7 @@ · 30 unmodified lines
31 31
32#define LIBAVFILTER_VERSION_MAJOR 732#define LIBAVFILTER_VERSION_MAJOR 7
33#define LIBAVFILTER_VERSION_MINOR 1133#define LIBAVFILTER_VERSION_MINOR 11
34#define LIBAVFILTER_VERSION_MICRO 10134#define LIBAVFILTER_VERSION_MICRO 100
35 35
36#define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \36#define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \
37 LIBAVFILTER_VERSION_MINOR, \37 LIBAVFILTER_VERSION_MINOR, \
@@ -55,8 +55,5 @@ · 17 unmodified lines
55#ifndef FF_API_LAVR_OPTS55#ifndef FF_API_LAVR_OPTS
56#define FF_API_LAVR_OPTS (LIBAVFILTER_VERSION_MAJOR < 8)56#define FF_API_LAVR_OPTS (LIBAVFILTER_VERSION_MAJOR < 8)
57#endif57#endif
58#ifndef FF_API_FILTER_GET_SET
59#define FF_API_FILTER_GET_SET (LIBAVFILTER_VERSION_MAJOR < 8)
60#endif
61 58
62#endif /* AVFILTER_VERSION_H */59#endif /* AVFILTER_VERSION_H */

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