[FFmpeg-cvslog] avfilter/vf_histogram: explicitly set 10bit output formats
Paul B Mahol
git at videolan.org
Fri Mar 4 23:10:15 CET 2016
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Fri Mar 4 22:58:45 2016 +0100| [ac15d7a666333060c3d0871e82a61e815b69390e] | committer: Paul B Mahol
avfilter/vf_histogram: explicitly set 10bit output formats
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ac15d7a666333060c3d0871e82a61e815b69390e
---
libavfilter/vf_histogram.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/libavfilter/vf_histogram.c b/libavfilter/vf_histogram.c
index 3a4725b..971d9b2 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;
More information about the ffmpeg-cvslog
mailing list