delta is in samples, not bytes. Also the sample format is not guaranteed to be planar. CC:libav-stable@libav.org