Browse Source

avfilter/vf_histogram: explicitly set 10bit output formats

Signed-off-by: Paul B Mahol <onemda@gmail.com>
tags/n3.1
Paul B Mahol 9 years ago
parent
commit
ac15d7a666
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      libavfilter/vf_histogram.c

+ 3
- 1
libavfilter/vf_histogram.c View File

@@ -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;



Loading…
Cancel
Save