Use pointers to avoid copying AVFrame.