diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-04-17 06:01:17 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-04-17 06:03:50 +0400 |
commit | 4778783160fb8d7aa39dafdabc756f1691b830f7 (patch) | |
tree | 4b79ab7e0bcefb304b8a4f3c32908d3217d6b4a9 /libavfilter/sink_buffer.c | |
parent | dcd207c4cbcd9dd72b73e5b544c055b29885be64 (diff) | |
parent | 3b266da3d35f3f7a61258b78384dfe920d875d29 (diff) |
Merge commit '3b266da3d35f3f7a61258b78384dfe920d875d29'
* commit '3b266da3d35f3f7a61258b78384dfe920d875d29':
avconv: add support for complex filtergraphs.
avconv: make filtergraphs global.
avconv: move filtered_frame from InputStream to OutputStream.
avconv: don't set output width/height directly from input value.
avconv: move resample_{width,height,pix_fmt} to InputStream.
avconv: remove a useless variable from OutputStream.
avconv: get output pixel format from lavfi.
graphparser: fix the order in which unlabeled input links are returned.
avconv: change {input,output}_{streams,files} into arrays of pointers.
avconv: don't pass input/output streams to some functions.
Conflicts:
cmdutils.c
cmdutils.h
doc/ffmpeg.texi
ffmpeg.c
ffplay.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/sink_buffer.c')
-rw-r--r-- | libavfilter/sink_buffer.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/libavfilter/sink_buffer.c b/libavfilter/sink_buffer.c index 926362bef8..8eb695e167 100644 --- a/libavfilter/sink_buffer.c +++ b/libavfilter/sink_buffer.c @@ -165,9 +165,9 @@ static av_cold int vsink_init(AVFilterContext *ctx, const char *args, void *opaq av_unused AVBufferSinkParams *params; if (!opaque) { - av_log(ctx, AV_LOG_ERROR, + av_log(ctx, AV_LOG_WARNING, "No opaque field provided\n"); - return AVERROR(EINVAL); + buf->pixel_fmts = NULL; } else { #if FF_API_OLD_VSINK_API const int *pixel_fmts = (const enum PixelFormat *)opaque; @@ -194,7 +194,11 @@ static int vsink_query_formats(AVFilterContext *ctx) { BufferSinkContext *buf = ctx->priv; - avfilter_set_common_pixel_formats(ctx, avfilter_make_format_list(buf->pixel_fmts)); + if (buf->pixel_fmts) + avfilter_set_common_pixel_formats(ctx, avfilter_make_format_list(buf->pixel_fmts)); + else + avfilter_default_query_formats(ctx); + return 0; } |