lavc, lavfi: fix counting number of planes in AVBufferRef wrappers
authorAnton Khirnov <anton@khirnov.net>
Sat, 16 Mar 2013 21:36:56 +0000 (22:36 +0100)
committerAnton Khirnov <anton@khirnov.net>
Tue, 19 Mar 2013 10:12:17 +0000 (11:12 +0100)
commitc977039e585bfff28ecc037ef827c6c3d1ed88aa
tree74aef763803811bb899c9cd856bbdb8da8476978
parent2c328a907978b61949fd20f7c991803174337855
lavc, lavfi: fix counting number of planes in AVBufferRef wrappers

Number of planes is not always equal to the number of components even
for formats marked with PIX_FMT_PLANAR -- e.g. NV12 has three components
in two planes.
libavcodec/utils.c
libavfilter/buffersrc.c