[FFmpeg-user] Chroma buffer offset

Sanjay Soni ssoni at lifesize.com
Wed Nov 9 12:12:37 CET 2011


Hi,
I am using FFMPEG to decode H264 streams.
My question is why in the output yuv AVFrame why data[1] is not equal to data[0] + (linesize[0] * height). The chroma pointer which I print is little further than that. Can somebody tell how can I fix this?

I am feeding this yuv to other encoder which does not have facility to take Y, U and V plane pointer separately. It just takes Y starting address and then calculate U = Y + stride * height !!!

Thanks
SS




More information about the ffmpeg-user mailing list