diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-07-20 16:23:25 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-07-20 16:23:25 +0000 |
commit | 4055438b48371387133a72b964bbc10152ce3a75 (patch) | |
tree | d87b17106e5ceb93210d83f7c9a36ab4fbc226c0 /libavfilter/vsrc_buffer.c | |
parent | b5634e458f76ec4dcbdfc2eb93dca8651e5b82f5 (diff) | |
download | ffmpeg-4055438b48371387133a72b964bbc10152ce3a75.tar.gz |
Apply misc cosmetical style fixes.
Originally committed as revision 24365 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter/vsrc_buffer.c')
-rw-r--r-- | libavfilter/vsrc_buffer.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/libavfilter/vsrc_buffer.c b/libavfilter/vsrc_buffer.c index 5b1ecce662..08f25edfcc 100644 --- a/libavfilter/vsrc_buffer.c +++ b/libavfilter/vsrc_buffer.c @@ -35,7 +35,6 @@ typedef struct { AVRational pixel_aspect; } BufferSourceContext; - int av_vsrc_buffer_add_frame(AVFilterContext *buffer_filter, AVFrame *frame, int64_t pts, AVRational pixel_aspect) { @@ -64,7 +63,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque) { BufferSourceContext *c = ctx->priv; - if(args && sscanf(args, "%d:%d:%d", &c->w, &c->h, &c->pix_fmt) == 3) + if (args && sscanf(args, "%d:%d:%d", &c->w, &c->h, &c->pix_fmt) == 3) return 0; av_log(ctx, AV_LOG_ERROR, "init() expected 3 arguments:'%s'\n", args); @@ -90,7 +89,6 @@ static int config_props(AVFilterLink *link) return 0; } - static int request_frame(AVFilterLink *link) { BufferSourceContext *c = link->src->priv; @@ -111,8 +109,8 @@ static int request_frame(AVFilterLink *link) av_picture_copy((AVPicture *)&picref->data, (AVPicture *)&c->frame, picref->pic->format, link->w, link->h); - picref->pts = c->pts; - picref->pixel_aspect = c->pixel_aspect; + picref->pts = c->pts; + picref->pixel_aspect = c->pixel_aspect; picref->interlaced = c->frame.interlaced_frame; picref->top_field_first = c->frame.top_field_first; avfilter_start_frame(link, avfilter_ref_pic(picref, ~0)); @@ -131,8 +129,7 @@ static int poll_frame(AVFilterLink *link) return !!(c->has_frame); } -AVFilter avfilter_vsrc_buffer = -{ +AVFilter avfilter_vsrc_buffer = { .name = "buffer", .priv_size = sizeof(BufferSourceContext), .query_formats = query_formats, |