OSDN Git Service

vf_colorspace: don't enable passthrough if bitdepth doesn't match.
authorRonald S. Bultje <rsbultje@gmail.com>
Fri, 6 May 2016 16:26:55 +0000 (12:26 -0400)
committerRonald S. Bultje <rsbultje@gmail.com>
Tue, 10 May 2016 13:26:17 +0000 (09:26 -0400)
commit531ff7161d9d6b0cf8f71125319c1f5df5041637
tree7ba275b5e23afc0e39c27c94afe6526ff2e47e67
parent356c116536650ae015f914fda060203dd853cc5c
vf_colorspace: don't enable passthrough if bitdepth doesn't match.

Also check return value of av_frame_copy() in passthrough mode, so that
if a copy fails (as it did here, because bitdepth didn't match), the filter
doesn't return success, which would mean sending an uninitialized framebuffer
further down the filtergraph.
libavfilter/vf_colorspace.c