diff options
author | Paul B Mahol <onemda@gmail.com> | 2016-03-04 22:58:45 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2016-03-04 23:09:41 +0100 |
commit | ac15d7a666333060c3d0871e82a61e815b69390e (patch) | |
tree | ece6296fba20f2dbfd8a4e3feba94372ea04c041 /libavfilter/vf_histogram.c | |
parent | 95a5fd4581c686ea6a7c8eb9188d902bce35d4f9 (diff) | |
download | ffmpeg-ac15d7a666333060c3d0871e82a61e815b69390e.tar.gz |
avfilter/vf_histogram: explicitly set 10bit output formats
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter/vf_histogram.c')
-rw-r--r-- | libavfilter/vf_histogram.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavfilter/vf_histogram.c b/libavfilter/vf_histogram.c index 3a4725beef..971d9b2618 100644 --- a/libavfilter/vf_histogram.c +++ b/libavfilter/vf_histogram.c @@ -148,8 +148,10 @@ static int query_formats(AVFilterContext *ctx) out_pix_fmts = levels_out_yuv8_pix_fmts; else if (bits == 9) out_pix_fmts = levels_out_yuv9_pix_fmts; - else // if (bits == 10) + else if (bits == 10) out_pix_fmts = levels_out_yuv10_pix_fmts; + else + return AVERROR(EAGAIN); if ((ret = ff_formats_ref(ff_make_format_list(out_pix_fmts), &ctx->outputs[0]->in_formats)) < 0) return ret; |