History

avfilter: remove FF_API_SWS_PARAM_OPTION

James Almer committed 3 years ago

Commit a9e77b41 parent 6d6ae352 files · +0 −12Browse files

Showing the changes to libavfilter (2 of 2 files). Show all

Unified · Split

2 files
  1. libavfilter/buffersrc.c +0 −11
  2. libavfilter/version_major.h +0 −1
libavfilter/buffersrc.c+0−11
@@ -50,9 +50,6 @@ typedef struct BufferSourceContext { · 49 unmodified lines
5050 int w, h;
5151 enum AVPixelFormat pix_fmt;
5252 AVRational pixel_aspect;
53−#if FF_API_SWS_PARAM_OPTION
54− char *sws_param;
55−#endif
5653
5754 AVBufferRef *hw_frames_ctx;
5855
@@ -287,11 +284,6 @@ static av_cold int init_video(AVFilterContext *ctx) · 228 unmodified lines
287284 c->time_base.num, c->time_base.den, c->frame_rate.num, c->frame_rate.den,
288285 c->pixel_aspect.num, c->pixel_aspect.den);
289286
290−#if FF_API_SWS_PARAM_OPTION
291− if (c->sws_param)
292− av_log(ctx, AV_LOG_WARNING, "sws_param option is deprecated and ignored\n");
293−#endif
294−
295287 return 0;
296288 }
297289
@@ -313,9 +305,6 @@ static const AVOption buffer_options[] = { · 15 unmodified lines
313305 { "pixel_aspect", "sample aspect ratio", OFFSET(pixel_aspect), AV_OPT_TYPE_RATIONAL, { .dbl = 0 }, 0, DBL_MAX, V },
314306 { "time_base", NULL, OFFSET(time_base), AV_OPT_TYPE_RATIONAL, { .dbl = 0 }, 0, DBL_MAX, V },
315307 { "frame_rate", NULL, OFFSET(frame_rate), AV_OPT_TYPE_RATIONAL, { .dbl = 0 }, 0, DBL_MAX, V },
316−#if FF_API_SWS_PARAM_OPTION
317− { "sws_param", NULL, OFFSET(sws_param), AV_OPT_TYPE_STRING, .flags = V },
318−#endif
319308 { NULL },
320309 };
321310
libavfilter/version_major.h+0−1
@@ -35,7 +35,6 @@ · 34 unmodified lines
3535 * the public API and may change, break or disappear at any time.
3636 */
3737
38−#define FF_API_SWS_PARAM_OPTION (LIBAVFILTER_VERSION_MAJOR < 9)
3938 #define FF_API_BUFFERSINK_ALLOC (LIBAVFILTER_VERSION_MAJOR < 9)
4039 #define FF_API_PAD_COUNT (LIBAVFILTER_VERSION_MAJOR < 9)
4140

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