frame: add a convenience function for copying AVFrame data