I'm doing color conversion YV12(YUV420) to NV12 using ffmpeg using sws_getCachedContext & sws_scale. Then I feed it IntelMedia VPP & Encoder. I have output but it is as following.
Y(luma) seem ok, but there seem to be a mismatch with UV(chroma) planes. Please give a hint if you recognize this problem.
I found the reason for this issue. Seems output slice linesize was being bitshifted and got cut in half.
Isn't avcodec_get_chroma_sub_sample for AVPixelFormat of AV_PIX_FMT_NV12 supposed to output 0 for horizontal shift ??