I tried to find what each cell of AVFrame.linesize[]
means, but I didn't found.
As I understood linesize[0]
is the width, linesize[1]
is the height.
- If I'm right what does other cells mean?
- why after
avcodec_decode_video2(codecCtxDecode, frameDecoded, &frameFinished, &packet);
only linesize[0] has the value and other cells are always 0?
UPDATED
I think AVFrame.data[i] and AVFrame.linesize[i] are the data of specific color in the row and the length of the row, am I correct?