... | ... |
@@ -550,7 +550,7 @@ static int configure_video_filters(InputStream *ist, OutputStream *ost) |
550 | 550 |
/** filter graph containing all filters including input & output */ |
551 | 551 |
AVCodecContext *codec = ost->st->codec; |
552 | 552 |
AVCodecContext *icodec = ist->st->codec; |
553 |
- FFSinkContext ffsink_ctx = { .pix_fmt = codec->pix_fmt }; |
|
553 |
+ AVSinkContext avsink_ctx = { .pix_fmt = codec->pix_fmt }; |
|
554 | 554 |
AVRational sample_aspect_ratio; |
555 | 555 |
char args[255]; |
556 | 556 |
int ret; |
... | ... |
@@ -570,8 +570,8 @@ static int configure_video_filters(InputStream *ist, OutputStream *ost) |
570 | 570 |
"src", args, NULL, ost->graph); |
571 | 571 |
if (ret < 0) |
572 | 572 |
return ret; |
573 |
- ret = avfilter_graph_create_filter(&ost->output_video_filter, &ffsink, |
|
574 |
- "out", NULL, &ffsink_ctx, ost->graph); |
|
573 |
+ ret = avfilter_graph_create_filter(&ost->output_video_filter, &avsink, |
|
574 |
+ "out", NULL, &avsink_ctx, ost->graph); |
|
575 | 575 |
if (ret < 0) |
576 | 576 |
return ret; |
577 | 577 |
last_filter = ost->input_video_filter; |
... | ... |
@@ -1707,7 +1707,7 @@ static int configure_video_filters(AVFilterGraph *graph, VideoState *is, const c |
1707 | 1707 |
{ |
1708 | 1708 |
char sws_flags_str[128]; |
1709 | 1709 |
int ret; |
1710 |
- FFSinkContext ffsink_ctx = { .pix_fmt = PIX_FMT_YUV420P }; |
|
1710 |
+ AVSinkContext avsink_ctx = { .pix_fmt = PIX_FMT_YUV420P }; |
|
1711 | 1711 |
AVFilterContext *filt_src = NULL, *filt_out = NULL; |
1712 | 1712 |
snprintf(sws_flags_str, sizeof(sws_flags_str), "flags=%d", sws_flags); |
1713 | 1713 |
graph->scale_sws_opts = av_strdup(sws_flags_str); |
... | ... |
@@ -1715,8 +1715,8 @@ static int configure_video_filters(AVFilterGraph *graph, VideoState *is, const c |
1715 | 1715 |
if ((ret = avfilter_graph_create_filter(&filt_src, &input_filter, "src", |
1716 | 1716 |
NULL, is, graph)) < 0) |
1717 | 1717 |
return ret; |
1718 |
- if ((ret = avfilter_graph_create_filter(&filt_out, &ffsink, "out", |
|
1719 |
- NULL, &ffsink_ctx, graph)) < 0) |
|
1718 |
+ if ((ret = avfilter_graph_create_filter(&filt_out, &avsink, "out", |
|
1719 |
+ NULL, &avsink_ctx, graph)) < 0) |
|
1720 | 1720 |
return ret; |
1721 | 1721 |
|
1722 | 1722 |
if (vfilters) { |
... | ... |
@@ -1031,34 +1031,34 @@ AVDictionary **setup_find_stream_info_opts(AVFormatContext *s, |
1031 | 1031 |
|
1032 | 1032 |
#if CONFIG_AVFILTER |
1033 | 1033 |
|
1034 |
-static int ffsink_init(AVFilterContext *ctx, const char *args, void *opaque) |
|
1034 |
+static int avsink_init(AVFilterContext *ctx, const char *args, void *opaque) |
|
1035 | 1035 |
{ |
1036 |
- FFSinkContext *priv = ctx->priv; |
|
1036 |
+ AVSinkContext *priv = ctx->priv; |
|
1037 | 1037 |
|
1038 | 1038 |
if (!opaque) |
1039 | 1039 |
return AVERROR(EINVAL); |
1040 |
- *priv = *(FFSinkContext *)opaque; |
|
1040 |
+ *priv = *(AVSinkContext *)opaque; |
|
1041 | 1041 |
|
1042 | 1042 |
return 0; |
1043 | 1043 |
} |
1044 | 1044 |
|
1045 | 1045 |
static void null_end_frame(AVFilterLink *inlink) { } |
1046 | 1046 |
|
1047 |
-static int ffsink_query_formats(AVFilterContext *ctx) |
|
1047 |
+static int avsink_query_formats(AVFilterContext *ctx) |
|
1048 | 1048 |
{ |
1049 |
- FFSinkContext *priv = ctx->priv; |
|
1049 |
+ AVSinkContext *priv = ctx->priv; |
|
1050 | 1050 |
enum PixelFormat pix_fmts[] = { priv->pix_fmt, PIX_FMT_NONE }; |
1051 | 1051 |
|
1052 | 1052 |
avfilter_set_common_formats(ctx, avfilter_make_format_list(pix_fmts)); |
1053 | 1053 |
return 0; |
1054 | 1054 |
} |
1055 | 1055 |
|
1056 |
-AVFilter ffsink = { |
|
1057 |
- .name = "ffsink", |
|
1058 |
- .priv_size = sizeof(FFSinkContext), |
|
1059 |
- .init = ffsink_init, |
|
1056 |
+AVFilter avsink = { |
|
1057 |
+ .name = "avsink", |
|
1058 |
+ .priv_size = sizeof(AVSinkContext), |
|
1059 |
+ .init = avsink_init, |
|
1060 | 1060 |
|
1061 |
- .query_formats = ffsink_query_formats, |
|
1061 |
+ .query_formats = avsink_query_formats, |
|
1062 | 1062 |
|
1063 | 1063 |
.inputs = (AVFilterPad[]) {{ .name = "default", |
1064 | 1064 |
.type = AVMEDIA_TYPE_VIDEO, |
... | ... |
@@ -363,9 +363,9 @@ FILE *get_preset_file(char *filename, size_t filename_size, |
363 | 363 |
|
364 | 364 |
typedef struct { |
365 | 365 |
enum PixelFormat pix_fmt; |
366 |
-} FFSinkContext; |
|
366 |
+} AVSinkContext; |
|
367 | 367 |
|
368 |
-extern AVFilter ffsink; |
|
368 |
+extern AVFilter avsink; |
|
369 | 369 |
|
370 | 370 |
/** |
371 | 371 |
* Extract a frame from sink. |
... | ... |
@@ -338,7 +338,7 @@ static int configure_video_filters(InputStream *ist, OutputStream *ost) |
338 | 338 |
/** filter graph containing all filters including input & output */ |
339 | 339 |
AVCodecContext *codec = ost->st->codec; |
340 | 340 |
AVCodecContext *icodec = ist->st->codec; |
341 |
- FFSinkContext ffsink_ctx = { .pix_fmt = codec->pix_fmt }; |
|
341 |
+ AVSinkContext avsink_ctx = { .pix_fmt = codec->pix_fmt }; |
|
342 | 342 |
AVRational sample_aspect_ratio; |
343 | 343 |
char args[255]; |
344 | 344 |
int ret; |
... | ... |
@@ -358,8 +358,8 @@ static int configure_video_filters(InputStream *ist, OutputStream *ost) |
358 | 358 |
"src", args, NULL, ost->graph); |
359 | 359 |
if (ret < 0) |
360 | 360 |
return ret; |
361 |
- ret = avfilter_graph_create_filter(&ost->output_video_filter, &ffsink, |
|
362 |
- "out", NULL, &ffsink_ctx, ost->graph); |
|
361 |
+ ret = avfilter_graph_create_filter(&ost->output_video_filter, &avsink, |
|
362 |
+ "out", NULL, &avsink_ctx, ost->graph); |
|
363 | 363 |
if (ret < 0) |
364 | 364 |
return ret; |
365 | 365 |
last_filter = ost->input_video_filter; |