I am having trouble encoding a video with the ffmpeg libraries as i am getting segfaults and/or out of bound memory writing when i am writing raw video data to an AVFrame. I therefore just wanted to ask if one of my assumptions was right.
Am i right to assume that the size of AVFrame.data[i]
is always equal to AVFrame.linesize[i]*AVFrame.Height
? Or could there be scenarios where that is not the case, and if so how can i then reliably calculate the size of AVFrame.data[i]
?