I am confused between linesize, height, width in AVFrame.
As per my understanding, linesize is the strides, which ideally should be the width of the image, right ?
However, the value of width and linesize are not matching.
AVFrame pFrame;
cout<<"PFrame Linesize :"<<pFrame->data.linesize[0]<<endl;
cout<<"PFrame Width :"<<pFrame->width<<endl;
Output :
PFrame Linesize : 64
PFrame width : 12
My frame is of dimension 12*12.
According to answers to this post, linesize should be same as width. But I am unable to understand why they are different here.