aboutsummaryrefslogtreecommitdiffstats
path: root/cmdutils.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2012-01-19 16:10:13 +0100
committerDiego Biurrun <diego@biurrun.de>2012-01-25 12:28:36 +0100
commitabe655a4723290497fd727df61fab2840d84b643 (patch)
tree101f86f2486fc9458ce36f614cff0b2909087092 /cmdutils.c
parent33ec9ef96d4220c4c846a5d3f2e95ba528b8bb16 (diff)
downloadffmpeg-abe655a4723290497fd727df61fab2840d84b643.tar.gz
Drop unnecessary prefix from *sink* variable and struct names.
Diffstat (limited to 'cmdutils.c')
-rw-r--r--cmdutils.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/cmdutils.c b/cmdutils.c
index a489a0f06e..0a87deedbb 100644
--- a/cmdutils.c
+++ b/cmdutils.c
@@ -1031,34 +1031,34 @@ AVDictionary **setup_find_stream_info_opts(AVFormatContext *s,
#if CONFIG_AVFILTER
-static int avsink_init(AVFilterContext *ctx, const char *args, void *opaque)
+static int sink_init(AVFilterContext *ctx, const char *args, void *opaque)
{
- AVSinkContext *priv = ctx->priv;
+ SinkContext *priv = ctx->priv;
if (!opaque)
return AVERROR(EINVAL);
- *priv = *(AVSinkContext *)opaque;
+ *priv = *(SinkContext *)opaque;
return 0;
}
static void null_end_frame(AVFilterLink *inlink) { }
-static int avsink_query_formats(AVFilterContext *ctx)
+static int sink_query_formats(AVFilterContext *ctx)
{
- AVSinkContext *priv = ctx->priv;
+ SinkContext *priv = ctx->priv;
enum PixelFormat pix_fmts[] = { priv->pix_fmt, PIX_FMT_NONE };
avfilter_set_common_formats(ctx, avfilter_make_format_list(pix_fmts));
return 0;
}
-AVFilter avsink = {
- .name = "avsink",
- .priv_size = sizeof(AVSinkContext),
- .init = avsink_init,
+AVFilter sink = {
+ .name = "sink",
+ .priv_size = sizeof(SinkContext),
+ .init = sink_init,
- .query_formats = avsink_query_formats,
+ .query_formats = sink_query_formats,
.inputs = (AVFilterPad[]) {{ .name = "default",
.type = AVMEDIA_TYPE_VIDEO,